x.py should not die if I set RUSTFLAGS=--color=never
in the env
#49838
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Right, now, if I do
RUSTFLAGS=--color=never x.py build
, I get:My initial inference here is that we are dying because
rustc
is getting multiple--color=never
directives (and one is coming in implicitly viaRUSTFLAGS
In my opinion,
rustc
should allow one to pass--color=never
multiple times. (Arguably other combinations of--color
should also be allowed.)RUSTFLAGS
input with command line input. But I digress.But if we want to continue having
rustc
be strict about that, thenx.py
needs to be smarter about looking at the environment when it decides what arguments to pass to therustc
it invokes.The text was updated successfully, but these errors were encountered: