about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2024-03-17 12:01:18 -0400
committerBen Kimock <kimockb@gmail.com>2024-03-17 12:01:18 -0400
commitaeb3447f618f3a95ade0f84fbca9b4b15cdf1580 (patch)
tree7953331937184bcb4c9b513f1db4f1106149b953
parenta0c20d52e0e83f0bdd5c4f24295def8b276de314 (diff)
downloadrust-aeb3447f618f3a95ade0f84fbca9b4b15cdf1580.tar.gz
rust-aeb3447f618f3a95ade0f84fbca9b4b15cdf1580.zip
Enable frame pointers for the library
-rw-r--r--src/bootstrap/src/core/build_steps/compile.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/core/build_steps/compile.rs
index e927b491c71..2076444ca0c 100644
--- a/src/bootstrap/src/core/build_steps/compile.rs
+++ b/src/bootstrap/src/core/build_steps/compile.rs
@@ -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);