Skip to content

Commit

Permalink
Test build_helper with the stage 0 compiler
Browse files Browse the repository at this point in the history
There is no need to build a stage N toolchain for testing it.
  • Loading branch information
Kobzol committed Jul 12, 2024
1 parent 823ea0e commit 72c3540
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bootstrap/src/core/build_steps/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 72c3540

Please sign in to comment.