mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
For run-coverage tests, build rust-demangler with the stage 0 compiler
This avoids useless rebuilds of the demangler when modifying the compiler.
This commit is contained in:
@@ -1568,9 +1568,11 @@ fn run(self, builder: &Builder<'_>) {
|
||||
}
|
||||
|
||||
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(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user