Skip to content

Commit 702679c

Browse files
authored
Unrolled build for rust-lang#129731
Rollup merge of rust-lang#129731 - ferrocene:x-test-compiler, r=onur-ozkan Allow running `./x.py test compiler`
2 parents fa72f07 + e20a888 commit 702679c

File tree

1 file changed

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

1 file changed

+3
-8
lines changed

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

+3-8
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ use crate::core::build_steps::synthetic_targets::MirOptPanicAbortSyntheticTarget
1414
use crate::core::build_steps::tool::{self, SourceType, Tool};
1515
use crate::core::build_steps::toolstate::ToolState;
1616
use crate::core::build_steps::{compile, dist, llvm};
17-
use crate::core::builder;
1817
use crate::core::builder::{
19-
crate_description, Builder, Compiler, Kind, RunConfig, ShouldRun, Step,
18+
self, crate_description, Alias, Builder, Compiler, Kind, RunConfig, ShouldRun, Step,
2019
};
2120
use crate::core::config::flags::{get_completion, Subcommand};
2221
use crate::core::config::TargetSelection;
@@ -2435,18 +2434,14 @@ impl Step for CrateLibrustc {
24352434
const ONLY_HOSTS: bool = true;
24362435

24372436
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
2438-
run.crate_or_deps("rustc-main")
2437+
run.crate_or_deps("rustc-main").path("compiler")
24392438
}
24402439

24412440
fn make_run(run: RunConfig<'_>) {
24422441
let builder = run.builder;
24432442
let host = run.build_triple();
24442443
let compiler = builder.compiler_for(builder.top_stage, host, host);
2445-
let crates = run
2446-
.paths
2447-
.iter()
2448-
.map(|p| builder.crate_paths[&p.assert_single_path().path].clone())
2449-
.collect();
2444+
let crates = run.make_run_crates(Alias::Compiler);
24502445

24512446
builder.ensure(CrateLibrustc { compiler, target: run.target, crates });
24522447
}

0 commit comments

Comments
 (0)