Skip to content

Commit

Permalink
Auto merge of rust-lang#122646 - saethlin:library-frame-pointers, r=<…
Browse files Browse the repository at this point in the history
…try>

Enable frame pointers for the library

Strange... I don't think this has been tried yet?

r? `@ghost`
  • Loading branch information
bors committed Mar 17, 2024
2 parents 35dfc67 + aeb3447 commit 389d0b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/src/core/build_steps/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,10 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
cargo.rustflag("-Cforce-unwind-tables=yes");
}

// 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");

let html_root =
format!("-Zcrate-attr=doc(html_root_url=\"{}/\")", builder.doc_rust_lang_org_channel(),);
cargo.rustflag(&html_root);
Expand Down

0 comments on commit 389d0b1

Please sign in to comment.