Skip to content

Commit bf0fbb0

Browse files
authored
Unrolled build for rust-lang#135729
Rollup merge of rust-lang#135729 - Noratrieb:compiler-profile-debug-assert, r=lqd Add debug assertions to compiler profile Working on the compiler without debug assertions is not a very productive way to work on the compiler.
2 parents ecda83b + 2e69bd2 commit bf0fbb0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-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.

src/bootstrap/src/utils/change_tracker.rs

+5
Original file line numberDiff line numberDiff line change
@@ -335,4 +335,9 @@ pub const CONFIG_CHANGE_HISTORY: &[ChangeInfo] = &[
335335
severity: ChangeSeverity::Warning,
336336
summary: "Some stamp names in the build artifacts may have changed slightly (e.g., from `llvm-finished-building` to `.llvm-stamp`).",
337337
},
338+
ChangeInfo {
339+
change_id: 135729,
340+
severity: ChangeSeverity::Info,
341+
summary: "Change the compiler profile to default to rust.debug-assertions = true",
342+
},
338343
];

0 commit comments

Comments
 (0)