Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2d5d55a

Browse files
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`.
1 parent 15825b7 commit 2d5d55a

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)

AltStyle によって変換されたページ (->オリジナル) /