Files
reims-vgpu/xtask
Anees Iqbal 3b2b1ad910 🎨 Build xtask on Windows, with dist refused there
xtask did not build for Windows: dist picked an OS module only on Linux
and macOS, and replace_if_changed and its tests set and read Unix modes.
cargo xtask is how a Windows host will run the checks, so it builds there
now:

- dist/windows.rs makes no tree. Its dist refuses, building and writing
  nothing, until a dist tree is laid out for Windows (the static archive's
  symbol localization there is still open).
- replace_if_changed sets the mode on Unix only, since Windows keeps no mode
  bits. The tests' mode reads and the symlink case run on Unix only.
- The helpers that only the Unix dists call expect dead_code on Windows, so
  the expectation fails once a Windows dist uses them.

Linux and macOS run the same code as before.
2026-11-15 05:50:53 -08:00
..