-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-building-cargo-itselfArea: issues with building cargoArea: issues with building cargoA-reproducibilityArea: reproducible / deterministic buildsArea: reproducible / deterministic buildsC-bugCategory: bugCategory: bugO-windowsOS: WindowsOS: WindowsS-blocked-externalStatus: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fixStatus: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix
Description
Lines 99 to 100 in 8bcecfe
// Turn linker warnings into errors. | |
println!("cargo:rustc-link-arg-bin=cargo=/WX"); |
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)).
Metadata
Metadata
Assignees
Labels
A-building-cargo-itselfArea: issues with building cargoArea: issues with building cargoA-reproducibilityArea: reproducible / deterministic buildsArea: reproducible / deterministic buildsC-bugCategory: bugCategory: bugO-windowsOS: WindowsOS: WindowsS-blocked-externalStatus: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fixStatus: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix