Test `build_helper` with the stage 0 compiler

There is no need to build a stage N toolchain for testing it.
This commit is contained in:
Jakub Beránek 2024-07-12 17:49:01 +02:00
parent 823ea0e987
commit 72c354094d
No known key found for this signature in database
GPG Key ID: 909CD0D26483516B
1 changed files with 2 additions and 3 deletions

View File

@ -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",