mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Don't build the full compiler before running unit tests
This has been present since `builder.ensure` was first added in https://github.com/rust-lang/rust/pull/43059. It's unclear to me why it was added then - I tested these changes locally with `x test compiler/rustc_data_structures --stage 0` and they worked fine. Fixes https://github.com/rust-lang/rust/issues/51748.
This commit is contained in:
parent
11909e3588
commit
ae1259769c
@ -1998,7 +1998,6 @@ impl Step for Crate {
|
||||
compile::std_cargo(builder, target, compiler.stage, &mut cargo);
|
||||
}
|
||||
Mode::Rustc => {
|
||||
builder.ensure(compile::Rustc { compiler, target });
|
||||
compile::rustc_cargo(builder, &mut cargo, target);
|
||||
}
|
||||
_ => panic!("can only test libraries"),
|
||||
|
Loading…
Reference in New Issue
Block a user