about summary refs log tree commit diff
path: root/src/bootstrap/defaults
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-16 10:14:49 +0000
committerbors <bors@rust-lang.org>2024-05-16 10:14:49 +0000
commitbf8801d36dfd28de7d3b0279b53d38593acdfd14 (patch)
tree4a954909a5e20888d7d2c74ed850eefe77b8c592 /src/bootstrap/defaults
parentb71e8cbaf2c7cae4d36898fff1d0ba19d9233082 (diff)
parent887151ad93b0541ae19c6589f4aeb3f07bbc60a1 (diff)
Auto merge of #123337 - workingjubilee:debug-compiler-profile-expectations, r=fmease
Include line tables in compiler profile

This profile has only undergone minimal tweaks since it was originally drafted. I asked a number of compiler contributors and they said they set rust.debug explicitly. This was even true for one contributor that set `rust.debug = false`! Almost everyone seems slightly surprised that `rust.debug = true` is not the default.

However, adding full debuginfo at this level costs multiple gigabytes! We can still get much better profiling and such by setting `rust.debuginfo-level = "line-tables-only"` at the cost of only 150~200 MB on the weight of a fresh build dir from `./x.py check`.
Diffstat (limited to 'src/bootstrap/defaults')
-rw-r--r--src/bootstrap/defaults/config.compiler.toml2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/defaults/config.compiler.toml b/src/bootstrap/defaults/config.compiler.toml
index d93c5fd25a1..fd2da246990 100644
--- a/src/bootstrap/defaults/config.compiler.toml
+++ b/src/bootstrap/defaults/config.compiler.toml
@@ -8,6 +8,8 @@ compiler-docs = true
 # where adding `debug!()` appears to do nothing.
 # However, it makes running the compiler slightly slower.
 debug-logging = true
+# Get actually-useful information from backtraces, profiling, etc. with minimal added bytes
+debuginfo-level = "line-tables-only"
 # This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower.
 incremental = true
 # Print backtrace on internal compiler errors during bootstrap