summary refs log tree commit diff
path: root/src/bootstrap/defaults
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2024-02-16 22:11:19 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2024-02-18 22:23:09 +0100
commit09e60434830d4b6387df03ee54cfb5207a06a1ff (patch)
tree37233abd73fb29fa8b988677d448c4b4f744cb5a /src/bootstrap/defaults
parent8a497723e311a62fccb1f0bf40e79c6519744a12 (diff)
downloadrust-09e60434830d4b6387df03ee54cfb5207a06a1ff.tar.gz
rust-09e60434830d4b6387df03ee54cfb5207a06a1ff.zip
Add `rust.frame-pointers` config option
This is very helpful for profiling. I've hacked this in many times, so
let's add it properly.
Diffstat (limited to 'src/bootstrap/defaults')
-rw-r--r--src/bootstrap/defaults/config.codegen.toml3
-rw-r--r--src/bootstrap/defaults/config.compiler.toml3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/defaults/config.codegen.toml b/src/bootstrap/defaults/config.codegen.toml
index 7c33ce958c9..cf336d7a636 100644
--- a/src/bootstrap/defaults/config.codegen.toml
+++ b/src/bootstrap/defaults/config.codegen.toml
@@ -23,3 +23,6 @@ incremental = true
 backtrace-on-ice = true
 # Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown.
 lto = "off"
+# Forces frame pointers to be used with `-Cforce-frame-pointers`.
+# This can be helpful for profiling at a small performance cost.
+frame-pointers = true
diff --git a/src/bootstrap/defaults/config.compiler.toml b/src/bootstrap/defaults/config.compiler.toml
index b27b524b873..5c2d476d98e 100644
--- a/src/bootstrap/defaults/config.compiler.toml
+++ b/src/bootstrap/defaults/config.compiler.toml
@@ -14,6 +14,9 @@ incremental = true
 backtrace-on-ice = true
 # Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown.
 lto = "off"
+# Forces frame pointers to be used with `-Cforce-frame-pointers`.
+# This can be helpful for profiling at a small performance cost.
+frame-pointers = true
 
 [llvm]
 # Will download LLVM from CI if available on your platform.