Skip to content

Commit 389d0b1

Browse files
committed
Auto merge of #122646 - saethlin:library-frame-pointers, r=<try>
Enable frame pointers for the library Strange... I don't think this has been tried yet? r? `@ghost`
2 parents 35dfc67 + aeb3447 commit 389d0b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,10 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
550550
cargo.rustflag("-Cforce-unwind-tables=yes");
551551
}
552552

553+
// Enable frame pointers by default for the library. Note that they are still controlled by a
554+
// separate setting for the compiler.
555+
cargo.rustflag("-Cforce-frame-pointers=yes");
556+
553557
let html_root =
554558
format!("-Zcrate-attr=doc(html_root_url=\"{}/\")", builder.doc_rust_lang_org_channel(),);
555559
cargo.rustflag(&html_root);

0 commit comments

Comments
 (0)