diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-31 10:08:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-31 10:08:57 +0200 |
| commit | 6c8b07f71a55c097b41b8063fc96de7d5eb3c369 (patch) | |
| tree | 571a44a7edb0de0af43b0c6c843d750896141946 /src | |
| parent | 5f10a99c7a0186994059f05a580e26070168ed58 (diff) | |
| parent | e20a888f8cb91d36634942fe5c1d6d38167d8fa3 (diff) | |
| download | rust-6c8b07f71a55c097b41b8063fc96de7d5eb3c369.tar.gz rust-6c8b07f71a55c097b41b8063fc96de7d5eb3c369.zip | |
Rollup merge of #129731 - ferrocene:x-test-compiler, r=onur-ozkan
Allow running `./x.py test compiler`
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/test.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs index cc01afd4c18..84a6b26a491 100644 --- a/src/bootstrap/src/core/build_steps/test.rs +++ b/src/bootstrap/src/core/build_steps/test.rs @@ -14,9 +14,8 @@ use crate::core::build_steps::synthetic_targets::MirOptPanicAbortSyntheticTarget use crate::core::build_steps::tool::{self, SourceType, Tool}; use crate::core::build_steps::toolstate::ToolState; use crate::core::build_steps::{compile, dist, llvm}; -use crate::core::builder; use crate::core::builder::{ - crate_description, Builder, Compiler, Kind, RunConfig, ShouldRun, Step, + self, crate_description, Alias, Builder, Compiler, Kind, RunConfig, ShouldRun, Step, }; use crate::core::config::flags::{get_completion, Subcommand}; use crate::core::config::TargetSelection; @@ -2435,18 +2434,14 @@ impl Step for CrateLibrustc { const ONLY_HOSTS: bool = true; fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { - run.crate_or_deps("rustc-main") + run.crate_or_deps("rustc-main").path("compiler") } fn make_run(run: RunConfig<'_>) { let builder = run.builder; let host = run.build_triple(); let compiler = builder.compiler_for(builder.top_stage, host, host); - let crates = run - .paths - .iter() - .map(|p| builder.crate_paths[&p.assert_single_path().path].clone()) - .collect(); + let crates = run.make_run_crates(Alias::Compiler); builder.ensure(CrateLibrustc { compiler, target: run.target, crates }); } |
