Skip to content

Commit 36c3f90

Browse files
committed
For run-coverage tests, build rust-demangler with the stage 0 compiler
This avoids useless rebuilds of the demangler when modifying the compiler.
1 parent be0d73a commit 36c3f90

File tree

1 file changed

+3
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+3
-1
lines changed

src/bootstrap/src/core/build_steps/test.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1568,9 +1568,11 @@ note: if you're sure you want to do this, please open an issue as to why. In the
15681568
}
15691569

15701570
if mode == "run-coverage" {
1571+
// The demangler doesn't need the current compiler, so we can avoid
1572+
// unnecessary rebuilds by using the bootstrap compiler instead.
15711573
let rust_demangler = builder
15721574
.ensure(tool::RustDemangler {
1573-
compiler,
1575+
compiler: compiler.with_stage(0),
15741576
target: compiler.host,
15751577
extra_features: Vec::new(),
15761578
})

0 commit comments

Comments
 (0)