Skip to content

Commit

Permalink
Unrolled build for rust-lang#135729
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rust-timer authored Jan 20, 2025
2 parents ecda83b + 2e69bd2 commit bf0fbb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bootstrap/defaults/config.compiler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# Enables debug assertions, which guard from many mistakes when working on the compiler.
debug-assertions = 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.
Expand Down
5 changes: 5 additions & 0 deletions src/bootstrap/src/utils/change_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,4 +335,9 @@ pub const CONFIG_CHANGE_HISTORY: &[ChangeInfo] = &[
severity: ChangeSeverity::Warning,
summary: "Some stamp names in the build artifacts may have changed slightly (e.g., from `llvm-finished-building` to `.llvm-stamp`).",
},
ChangeInfo {
change_id: 135729,
severity: ChangeSeverity::Info,
summary: "Change the compiler profile to default to rust.debug-assertions = true",
},
];

0 comments on commit bf0fbb0

Please sign in to comment.