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 868bf2d

Browse files
committed
Auto merge of #141800 - workingjubilee:build-std-with-less-leaf-pointers, r=saethlin
bootstrap: build std sans leaf frame pointers Sometimes leaf frame-pointers can impact LLVM inlining choices, and that can be a real problem for things like `mul_add`.
2 parents 44f415c + 2d5d55a commit 868bf2d

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
@@ -668,7 +668,8 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
668668

669669
// Enable frame pointers by default for the library. Note that they are still controlled by a
670670
// separate setting for the compiler.
671-
cargo.rustflag("-Cforce-frame-pointers=yes");
671+
cargo.rustflag("-Zunstable-options");
672+
cargo.rustflag("-Cforce-frame-pointers=non-leaf");
672673

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

0 commit comments

Comments
(0)

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