about summary refs log tree commit diff
path: root/src/bootstrap/defaults
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-04-01 13:16:15 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-05-15 17:38:22 -0700
commit887151ad93b0541ae19c6589f4aeb3f07bbc60a1 (patch)
treedb38a833af461b0719b2484efe42229d86912380 /src/bootstrap/defaults
parent1871252fc8bb672d40787e67404e6eaae7059369 (diff)
downloadrust-887151ad93b0541ae19c6589f4aeb3f07bbc60a1.tar.gz
rust-887151ad93b0541ae19c6589f4aeb3f07bbc60a1.zip
Set `debuginfo-level = "line-tables-only"` for 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 debuginfo by setting "line-tables-only"
at the cost of only 150~200 MB.
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