Skip to content

Commit da655e9

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 59d4d4e commit da655e9

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
@@ -1567,9 +1567,11 @@ note: if you're sure you want to do this, please open an issue as to why. In the
15671567
}
15681568

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

0 commit comments

Comments
 (0)