Skip to content

Commit b037515

Browse files
committed
Add debug assertions to compiler profile
Working on the compiler without debug assertions is not a very productive way to work on the compiler.
1 parent 8e59cf9 commit b037515

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/defaults/config.compiler.toml

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ compiler-docs = true
88
# where adding `debug!()` appears to do nothing.
99
# However, it makes running the compiler slightly slower.
1010
debug-logging = true
11+
# Enables debug assertions, which guard from many mistakes when working on the compiler.
12+
debug-assertions = true
1113
# Get actually-useful information from backtraces, profiling, etc. with minimal added bytes
1214
debuginfo-level = "line-tables-only"
1315
# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower.

0 commit comments

Comments
 (0)