diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2024-07-12 17:49:01 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2024-07-12 20:15:20 +0200 |
| commit | 72c354094d993ae65b9f292d3cb30c98f277e441 (patch) | |
| tree | 893f8e7758ecd32eb7e34308d8ab1c810bba186a | |
| parent | 823ea0e9879c234ba9a9a50082180cec8d0634df (diff) | |
| download | rust-72c354094d993ae65b9f292d3cb30c98f277e441.tar.gz rust-72c354094d993ae65b9f292d3cb30c98f277e441.zip | |
Test `build_helper` with the stage 0 compiler
There is no need to build a stage N toolchain for testing it.
| -rw-r--r-- | src/bootstrap/src/core/build_steps/test.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs index 73570675870..e49c2cbe17b 100644 --- a/src/bootstrap/src/core/build_steps/test.rs +++ b/src/bootstrap/src/core/build_steps/test.rs @@ -1372,13 +1372,12 @@ impl Step for CrateBuildHelper { /// Runs `cargo test` for build_helper. fn run(self, builder: &Builder<'_>) { let host = self.host; - let compiler = builder.compiler(builder.top_stage, host); + let compiler = builder.compiler(0, host); - builder.ensure(compile::Std::new(compiler, host)); let mut cargo = tool::prepare_tool_cargo( builder, compiler, - Mode::ToolStd, + Mode::ToolBootstrap, host, "test", "src/tools/build_helper", |
