We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75da570 commit 15aad5fCopy full SHA for 15aad5f
src/bootstrap/tool.rs
@@ -593,7 +593,14 @@ impl Step for Cargo {
593
594
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
595
let builder = run.builder;
596
- run.path("src/tools/cargo").default_condition(builder.config.extended)
+ run.path("src/tools/cargo").default_condition(
597
+ builder.config.extended
598
+ && builder.config.tools.as_ref().map_or(
599
+ true,
600
+ // If `tools` is set, search list for this tool.
601
+ |tools| tools.iter().any(|tool| tool == "cargo"),
602
+ ),
603
+ )
604
}
605
606
fn make_run(run: RunConfig<'_>) {
0 commit comments