Skip to content

Commit

Permalink
For run-coverage tests, build rust-demangler with the stage 0 compiler
Browse files Browse the repository at this point in the history
This avoids useless rebuilds of the demangler when modifying the compiler.
  • Loading branch information
Zalathar committed Oct 26, 2023
1 parent 59d4d4e commit da655e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bootstrap/src/core/build_steps/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1567,9 +1567,11 @@ note: if you're sure you want to do this, please open an issue as to why. In the
}

if mode == "run-coverage" {
// The demangler doesn't need the current compiler, so we can avoid
// unnecessary rebuilds by using the bootstrap compiler instead.
let rust_demangler = builder
.ensure(tool::RustDemangler {
compiler,
compiler: compiler.with_stage(0),
target: compiler.host,
extra_features: Vec::new(),
})
Expand Down

0 comments on commit da655e9

Please sign in to comment.