-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
x.py should not die if I set RUSTFLAGS=--color=never in the env #49838
Copy link
Copy link
Closed as not planned
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Right, now, if I do
RUSTFLAGS=--color=never x.py build, I get:My initial inference here is that we are dying because
rustcis getting multiple--color=neverdirectives (and one is coming in implicitly viaRUSTFLAGSIn my opinion,
rustcshould allow one to pass--color=nevermultiple times. (Arguably other combinations of--colorshould also be allowed.)RUSTFLAGSinput with command line input. But I digress.But if we want to continue having
rustcbe strict about that, thenx.pyneeds to be smarter about looking at the environment when it decides what arguments to pass to therustcit invokes.