diff options
| author | jyn <github@jyn.dev> | 2023-06-03 14:14:54 -0500 |
|---|---|---|
| committer | jyn <github@jyn.dev> | 2023-06-03 14:14:54 -0500 |
| commit | f6611d34f13be7b105a6eda384aa25e30f3c733b (patch) | |
| tree | 9f57ca5c2ae77797a6dc866f4bf2bf783868846a | |
| parent | 2f5e6bb817c115c067ff47453eb9aa89a0a31358 (diff) | |
| download | rust-f6611d34f13be7b105a6eda384aa25e30f3c733b.tar.gz rust-f6611d34f13be7b105a6eda384aa25e30f3c733b.zip | |
Don't compile rustc to self-test compiletest
This was changed from stage 0 to 1 in https://github.com/rust-lang/rust/pull/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`.
| -rw-r--r-- | src/bootstrap/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index eec8c4ad69f..6a1e4556de8 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -700,7 +700,7 @@ impl Step for CompiletestTest { /// Runs `cargo test` for compiletest. fn run(self, builder: &Builder<'_>) { let host = self.host; - let compiler = builder.compiler(1, host); + let compiler = builder.compiler(builder.top_stage, host); // We need `ToolStd` for the locally-built sysroot because // compiletest uses unstable features of the `test` crate. |
