diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2024-02-16 22:11:19 +0100 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2024-02-18 22:23:09 +0100 |
| commit | 09e60434830d4b6387df03ee54cfb5207a06a1ff (patch) | |
| tree | 37233abd73fb29fa8b988677d448c4b4f744cb5a /src/bootstrap/defaults | |
| parent | 8a497723e311a62fccb1f0bf40e79c6519744a12 (diff) | |
| download | rust-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.toml | 3 | ||||
| -rw-r--r-- | src/bootstrap/defaults/config.compiler.toml | 3 |
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. |
