File tree 2 files changed +4
-11
lines changed
src/bootstrap/src/core/build_steps
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -1053,10 +1053,6 @@ pub fn rustc_cargo(
1053
1053
1054
1054
cargo. rustdocflag ( "-Zcrate-attr=warn(rust_2018_idioms)" ) ;
1055
1055
1056
- // If the rustc output is piped to e.g. `head -n1` we want the process to be
1057
- // killed, rather than having an error bubble up and cause a panic.
1058
- cargo. rustflag ( "-Zon-broken-pipe=kill" ) ;
1059
-
1060
1056
if builder. config . llvm_enzyme {
1061
1057
cargo. rustflag ( "-l" ) . rustflag ( "Enzyme-19" ) ;
1062
1058
}
Original file line number Diff line number Diff line change @@ -200,6 +200,10 @@ pub fn prepare_tool_cargo(
200
200
cargo. arg ( "--features" ) . arg ( features. join ( ", " ) ) ;
201
201
}
202
202
203
+ // Warning: be very careful with RUSTFLAGS or command-line options, as conditionally applied
204
+ // RUSTFLAGS or cli flags can lead to hard-to-diagnose rebuilds due to flag differences, causing
205
+ // previous tool build artifacts to get invalidated.
206
+
203
207
// Enable internal lints for clippy and rustdoc
204
208
// NOTE: this doesn't enable lints for any other tools unless they explicitly add `#![warn(rustc::internal)]`
205
209
// See https://github.com/rust-lang/rust/pull/80573#issuecomment-754010776
@@ -209,13 +213,6 @@ pub fn prepare_tool_cargo(
209
213
// See https://github.com/rust-lang/rust/issues/116538
210
214
cargo. rustflag ( "-Zunstable-options" ) ;
211
215
212
- // `-Zon-broken-pipe=kill` breaks cargo tests
213
- if !path. ends_with ( "cargo" ) {
214
- // If the output is piped to e.g. `head -n1` we want the process to be killed,
215
- // rather than having an error bubble up and cause a panic.
216
- cargo. rustflag ( "-Zon-broken-pipe=kill" ) ;
217
- }
218
-
219
216
cargo
220
217
}
221
218
You can’t perform that action at this time.
0 commit comments