Skip to content

Commit fc0d1dc

Browse files
committed
use ModeToolBootstrap for run-make-support's crate tests
We don't need to ensure std (and rustc) for testing run-make-support's unit tests. Using stage 0 compiler is already enough and speeds up `x test run-make-support` invocations on a clean build. Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent e1f45a1 commit fc0d1dc

File tree

1 file changed

+2
-3
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+2
-3
lines changed

src/bootstrap/src/core/build_steps/test.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1325,13 +1325,12 @@ impl Step for CrateRunMakeSupport {
13251325
/// Runs `cargo test` for run-make-support.
13261326
fn run(self, builder: &Builder<'_>) {
13271327
let host = self.host;
1328-
let compiler = builder.compiler(builder.top_stage, host);
1328+
let compiler = builder.compiler(0, host);
13291329

1330-
builder.ensure(compile::Std::new(compiler, host));
13311330
let mut cargo = tool::prepare_tool_cargo(
13321331
builder,
13331332
compiler,
1334-
Mode::ToolStd,
1333+
Mode::ToolBootstrap,
13351334
host,
13361335
"test",
13371336
"src/tools/run-make-support",

0 commit comments

Comments
 (0)