xtask: type-check the Windows target from any host #2362
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2362
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2362"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@borosf on GitHub · 2026-11-25 11:53 UTC · original
borosf:vibe/dev-qol-842ca5→main· +43 −0 · 1 files · 1 commits · openSummary
cargo xtask checktype-checks forx86_64-pc-windows-msvcfrom any host: code behind#[cfg(windows)](the whole victory-shader GPU test harness among it) does not compilefor a plain
cargo checkoff Windows, so its type errors first appear in CI — anE0283in an untyped
CreateDescriptorHeapreached the review of another PR exactly that way,and a reviewer's machine time found it before CI did. The crates that bind blake3's C code
(victory-gpu and everything below it) cannot cross-build without a Windows-capable C
toolchain, so the command covers the rest and its docs say which and why.
claiming: new (not in CLAIMS.md; commenting from this account is blocked by the
integration's permissions, so the claim rides this pull request).
Verification
cargo run -p xtask --locked -- check: passes on Linux afterrustup target add x86_64-pc-windows-msvc(a target the toolchain file already pins);the same check is what caught the Windows-only type error above before a push.
cargo run -p xtask --locked -- policy: 183 files ok.cargo clippy -p xtask --all-targets --locked -- -D warnings: clean in both clippyconfigurations CI runs.
@ntgata1-dotcom on GitHub · 2026-11-25 12:05 UTC · original
Linux: works as described, and the crates it leaves out type-check from Linux too
Arch Linux, Rust 1.98.1 from
rust-toolchain.toml, atc7c4da7:cargo xtask checkpasses, with noCCorARvariables set.The crates it leaves out (
victory-gpuand the crates that need it) also type-check for the Windows target from Linux whenccuses LLVM'sclang-cl. This passes for the whole workspace from an empty target folder in 15 s:That's clang/LLVM 23.1.5 from Arch's
clangandllvmpackages, with no Windows SDK. blake3's build script compiles its x86-64 assembly withclang-cl(blake3_sse2_sse41_avx2_assembly.lib,blake3_avx512_assembly.lib).cargo xwin clippy --workspace --all-targetspasses as well, but it downloads the MSVC CRT and Windows SDK.So the command could check the whole workspace when
clang-clandllvm-libare onPATH, and keep today's five crates otherwise. That's your call; it works as it is.AI-assisted (Claude Code); numbers from my own runs.
@cloph-dsp on GitHub · 2026-11-25 12:56 UTC · original
Independent local validation for VIctory PR #2362 (Windows, Rust 1.100.0/MSVC, head
c7c4da7, no game data/DRM):cargo run -p xtask --locked -- check-> exit 0;cargo run -p xtask --locked -- policy->asset policy: 182 files ok, exit 0;cargo check --workspace --all-targets --locked --target x86_64-pc-windows-msvc-> exit 0 (only pre-existingfetch_updatedeprecation warnings). This host is MSVC without clang-cl, so it confirms the xtask check path works on a second Windows toolchain setup. I did not test from a non-Windows host, nor run clippy (Scoop Rust lacks the component). AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only type-check). No game data, assets or extracted content used.@Marvisak on GitHub · 2026-11-25 14:46 UTC · original · edited 2026-11-26 00:20 UTC
Automated triage for the maintainers.
Needs work: needs the maintainer's decision. The head is unchanged since the last triage (
c7c4da7). The newcargo xtask checkinxtask/src/main.rsreads correctly, but a new xtask command that spawnscargo checkfor another target is tooling the maintainer has to want first.On your reply: agreed. Add the
clang-cl/llvm-libline only if the maintainer takes the command. Nothing else is needed from you for now. CI: passing.Generated by Claude Code
@borosf on GitHub · 2026-11-25 17:16 UTC · original
Understood that the command itself needs the maintainer's want. If it's taken: the thread's clang-cl datapoint is worth folding in as a doc line — the whole workspace, victory-gpu included, type-checks for the Windows target from Linux with CC_x86_64_pc_windows_msvc=clang-cl AR_x86_64_pc_windows_msvc=llvm-lib cargo check --workspace --all-targets --locked --target x86_64-pc-windows-msvc — happy to add that sentence if that's the direction.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.