Skip to content

Commit 53f6b1b

Browse files
Auto merge of #141800 - workingjubilee:build-std-with-less-leaf-pointers, r=<try>
bootstrap: build std with less frame pointers Sometimes leaf frame-pointers can impact LLVM inlining choices, and that can be a real problem for things like `mul_add`. r? `@ghost`
2 parents 70b3f46 + 2d5d55a commit 53f6b1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,8 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
670670

671671
// Enable frame pointers by default for the library. Note that they are still controlled by a
672672
// separate setting for the compiler.
673-
cargo.rustflag("-Cforce-frame-pointers=yes");
673+
cargo.rustflag("-Zunstable-options");
674+
cargo.rustflag("-Cforce-frame-pointers=non-leaf");
674675

675676
let html_root =
676677
format!("-Zcrate-attr=doc(html_root_url=\"{}/\")", builder.doc_rust_lang_org_channel(),);

0 commit comments

Comments
 (0)