about summary refs log tree commit diff
path: root/src/bootstrap/defaults
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-04-25 12:09:08 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-04-25 12:09:08 -0400
commit9e722f7e32194beeb92c0861cb4c194ac705f98b (patch)
treefc5ea4f054598eb1725de61c64a6c0181fd01675 /src/bootstrap/defaults
parent7e11f3a8f3c1b2683125e7def0acb68a6d684f92 (diff)
downloadrust-9e722f7e32194beeb92c0861cb4c194ac705f98b.tar.gz
rust-9e722f7e32194beeb92c0861cb4c194ac705f98b.zip
Set `backtrace-on-ice` by default for compiler and codegen profiles
If there's an ICE while bootstrapping, it's most likely because of a change to the compiler.
Diffstat (limited to 'src/bootstrap/defaults')
-rw-r--r--src/bootstrap/defaults/config.codegen.toml2
-rw-r--r--src/bootstrap/defaults/config.compiler.toml2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/defaults/config.codegen.toml b/src/bootstrap/defaults/config.codegen.toml
index a9505922ca7..011ff6821b7 100644
--- a/src/bootstrap/defaults/config.codegen.toml
+++ b/src/bootstrap/defaults/config.codegen.toml
@@ -11,3 +11,5 @@ assertions = true
 debug-logging = true
 # 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
+backtrace-on-ice = true
diff --git a/src/bootstrap/defaults/config.compiler.toml b/src/bootstrap/defaults/config.compiler.toml
index 883bfead64e..4d689d117bc 100644
--- a/src/bootstrap/defaults/config.compiler.toml
+++ b/src/bootstrap/defaults/config.compiler.toml
@@ -6,6 +6,8 @@
 debug-logging = true
 # 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
+backtrace-on-ice = true
 
 [llvm]
 # Will download LLVM from CI if available on your platform.