How can I pass some compiler flags to certain crates? #10014
Labels
A-rustflags
Area: rustflags
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Problem
I want to compile a project with
cargo build
. This project has one binary and several libraries. I would like to pass some compiler flags such asllvm-args=-sanitizer-coverage-level=2
to certain crates. If I change the environment variable: RUSTFLAGS, all the dependencies will also be passed with the flags. Is there a way?Proposed Solution
No response
Notes
No response
The text was updated successfully, but these errors were encountered: