Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e336b35

Browse files
tmandryKobzol
authored andcommitted
force-unwind-tables
1 parent 5827dc5 commit e336b35

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,11 @@ pub fn rustc_cargo(
12801280
));
12811281
}
12821282

1283+
if compiler.stage != 0 {
1284+
cargo.rustflag("-Cpanic=abort");
1285+
cargo.rustflag("-Cforce-unwind-tables=yes");
1286+
}
1287+
12831288
rustc_cargo_env(builder, cargo, target, compiler.stage);
12841289
}
12851290

0 commit comments

Comments
 (0)