Cargo shouldn't set /WX
(-Werror
for MSVC linker) outside of CI
#13620
Labels
A-building-cargo-itself
Area: issues with building cargo
A-reproducibility
Area: reproducible / deterministic builds
C-bug
Category: bug
O-windows
OS: Windows
S-needs-team-input
Status: Needs input from team on whether/how to proceed.
cargo/build.rs
Lines 99 to 100 in 8bcecfe
Setting
/WX
might make versions of Cargo harder to build in the future. If a new version of MSVC gets released that throws a warning here, users wanting to build an old version of Cargo will need to patch it to even make them build. See https://embeddedartistry.com/blog/2017/05/22/werror-is-not-your-friend/ ("-Werror Introduces a Toolchain Version Dependency"). It's better to only enable/WX
in CI, this way you can always change it, but don't leave users who want to compile Cargo with errors.(from #13131 (comment)).
The text was updated successfully, but these errors were encountered: