Provide option to restrict RUSTFLAGS to non-build-dependencies #3739
Labels
A-build-dependencies
Area: [build-dependencies]
A-configuration
Area: cargo config files and env vars
A-environment-variables
Area: environment variables
A-rustflags
Area: rustflags
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Currently, setting RUSTFLAGS will compile build dependencies with the provided options as well. This means that using things like the sanitizer support may not work since the build dependencies will be compiled with sanitizers on as well, and they may fail.
This probably also means that RUSTFLAGS isn't very useful when cross compiling.
(This is making it hard to write nice wrappers for fuzzing)
The text was updated successfully, but these errors were encountered: