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`.
This commit is contained in:
parent
15825b7161
commit
2d5d55a50a
1 changed files with 2 additions and 1 deletions
|
|
@ -670,7 +670,8 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
|
|||
|
||||
// Enable frame pointers by default for the library. Note that they are still controlled by a
|
||||
// separate setting for the compiler.
|
||||
cargo.rustflag("-Cforce-frame-pointers=yes");
|
||||
cargo.rustflag("-Zunstable-options");
|
||||
cargo.rustflag("-Cforce-frame-pointers=non-leaf");
|
||||
|
||||
let html_root =
|
||||
format!("-Zcrate-attr=doc(html_root_url=\"{}/\")", builder.doc_rust_lang_org_channel(),);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue