mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Make x test --stage 2 compiler/rustc_XXX faster to run
Previously, bootstrap unconditionally rebuilt the stage 2 compiler, even if it had previously built stage 1. This changes it to reuse stage 1 if possible.
This commit is contained in:
@@ -1899,7 +1899,8 @@ fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
||||
|
||||
fn make_run(run: RunConfig<'_>) {
|
||||
let builder = run.builder;
|
||||
let compiler = builder.compiler(builder.top_stage, run.build_triple());
|
||||
let host = run.build_triple();
|
||||
let compiler = builder.compiler_for(builder.top_stage, host, host);
|
||||
let krate = builder.crate_paths[&run.path];
|
||||
let test_kind = builder.kind.into();
|
||||
|
||||
@@ -1936,7 +1937,8 @@ fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
||||
|
||||
fn make_run(run: RunConfig<'_>) {
|
||||
let builder = run.builder;
|
||||
let compiler = builder.compiler(builder.top_stage, run.build_triple());
|
||||
let host = run.build_triple();
|
||||
let compiler = builder.compiler_for(builder.top_stage, host, host);
|
||||
let test_kind = builder.kind.into();
|
||||
let krate = builder.crate_paths[&run.path];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user