mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
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>
This commit is contained in:
@@ -1325,13 +1325,12 @@ fn make_run(run: RunConfig<'_>) {
|
||||
/// Runs `cargo test` for run-make-support.
|
||||
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/run-make-support",
|
||||
|
||||
Reference in New Issue
Block a user