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:
parent
823ea0e987
commit
72c354094d
1 changed files with 2 additions and 3 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue