-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build.rustflags
is ignored
#8
Comments
It seems like the Would fixing this require handling escaped and quoted whitespace? |
Sanitizer support is being worked on in #5, seems to be blocked on some macOS trouble. RUSTFLAGS does not support escaping or quoting whitespace, we have to parse it the same way cargo does, or how Miri parses MIRIFLAGS: if let Ok(a) = env::var("MIRIFLAGS") {
// This code is taken from `RUSTFLAGS` handling in cargo.
let args = a.split(' ').map(str::trim).filter(|s| !s.is_empty()).map(str::to_string); |
Once this is possible we probably want to revert #11. |
One interesting question here is whether RUSTFLAGS should also be applied to the stdlib build. Usually of course that is not the case, and Miri also deliberately does not apply MIRIFLAGS to the stdlib build. If we want to allow setting stdlib flags, that should probably be a separate flag? |
They should apply to the stdlib build. Not applying them would diverge from the behavior of |
We have But yeah we can only be consistent with regular builds or build-std. |
via reddit:
I'm using special flags, like:
cargo careful does not seem to use this flag.
This is probably because we are setting rustflags ourselves, cargo stops using the flags from the toml file.
The text was updated successfully, but these errors were encountered: