Skip to content

Commit 7b6a2f5

Browse files
committed
Build the compiler with panic=abort
1 parent fdaebce commit 7b6a2f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/src/core/build_steps/compile.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,10 @@ pub fn rustc_cargo(
10791079
));
10801080
}
10811081

1082+
if compiler.stage != 0 {
1083+
cargo.rustflag("-Cpanic=abort");
1084+
}
1085+
10821086
rustc_cargo_env(builder, cargo, target, compiler.stage);
10831087
}
10841088

0 commit comments

Comments
 (0)