File tree 4 files changed +5
-11
lines changed
4 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,9 @@ fn main() {
116
116
}
117
117
_ => Command :: new ( rustc_driver) ,
118
118
} ;
119
+
120
+ cmd. arg ( "-Zon-broken-pipe=kill" ) ;
121
+
119
122
cmd. args ( & args) . env ( dylib_path_var ( ) , env:: join_paths ( & dylib_path) . unwrap ( ) ) ;
120
123
121
124
if let Some ( crate_name) = crate_name {
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ fn main() {
42
42
}
43
43
}
44
44
45
+ cmd. arg ( "-Zon-broken-pipe=kill" ) ;
46
+
45
47
cmd. args ( & args) ;
46
48
cmd. env ( dylib_path_var ( ) , env:: join_paths ( & dylib_path) . unwrap ( ) ) ;
47
49
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 @@ -209,13 +209,6 @@ pub fn prepare_tool_cargo(
209
209
// See https://github.com/rust-lang/rust/issues/116538
210
210
cargo. rustflag ( "-Zunstable-options" ) ;
211
211
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
212
cargo
220
213
}
221
214
You can’t perform that action at this time.
0 commit comments