Skip to content

Commit f6611d3

Browse files
committed
Don't compile rustc to self-test compiletest
This was changed from stage 0 to 1 in rust-lang#108905, but I'm not sure why. Change it to `top_stage` instead to allow people to choose the stage. This should save quite a bit of time in the `mingw-check` builder, which explicitly runs `x test --stage 0 compiletest`.
1 parent 2f5e6bb commit f6611d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ impl Step for CompiletestTest {
700700
/// Runs `cargo test` for compiletest.
701701
fn run(self, builder: &Builder<'_>) {
702702
let host = self.host;
703-
let compiler = builder.compiler(1, host);
703+
let compiler = builder.compiler(builder.top_stage, host);
704704

705705
// We need `ToolStd` for the locally-built sysroot because
706706
// compiletest uses unstable features of the `test` crate.

0 commit comments

Comments
 (0)