-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
cargo is unnecessarily rebuilt on x.py dist #130018
Comments
RUSTFLAGS is opaque to Cargo. Cargo doesn't really parse the content of those flags. Here is an issue of reconsidering rustflags cache mechanism |
I understand Cargo does not really parse the content of those flags. But then our bootstrap mechanism should then work around the issue, or at least make the inclusion of |
Oops removing // `-Zon-broken-pipe=kill` breaks cargo tests
if !path.ends_with("cargo") {
// If the output is piped to e.g. `head -n1` we want the process to be killed,
// rather than having an error bubble up and cause a panic.
cargo.rustflag("-Zon-broken-pipe=kill");
} and fix up the cargo tests... |
@xry111 can you check if this is fixed for you by #131155? This isn't a cargo problem, this was a bootstrap problem + tool problem where |
Run
And
x.py dist
will rebuild cargo for no good reason (the rebuilt cargo executable is unchanged at all). Using a cargo instrumented with debug output:AFAIK
-Zon-broken-pipe=kill
shouldn't affect code generation, thus there's no need to rebuild cargo.The text was updated successfully, but these errors were encountered: