diff options
Diffstat (limited to 'community/rust/bootstrap-tool-respect-tool-config.patch')
-rw-r--r-- | community/rust/bootstrap-tool-respect-tool-config.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/community/rust/bootstrap-tool-respect-tool-config.patch b/community/rust/bootstrap-tool-respect-tool-config.patch index 2ff038ed69..958ef29e5c 100644 --- a/community/rust/bootstrap-tool-respect-tool-config.patch +++ b/community/rust/bootstrap-tool-respect-tool-config.patch @@ -8,9 +8,9 @@ Subject: [PATCH] Fix tool builder to respect build.tools config fn should_run(run: ShouldRun) -> ShouldRun { let builder = run.builder; -- run.path("src/tools/cargo").default_condition(builder.build.config.extended) -+ run.path("src/tools/cargo").default_condition(builder.build.config.extended -+ && builder.build.config.tools.as_ref().map_or(true, |t| t.contains("cargo"))) +- run.path("src/tools/cargo").default_condition(builder.config.extended) ++ run.path("src/tools/cargo").default_condition(builder.config.extended ++ && builder.config.tools.as_ref().map_or(true, |t| t.contains("cargo"))) } fn make_run(run: RunConfig) { @@ -18,9 +18,9 @@ Subject: [PATCH] Fix tool builder to respect build.tools config fn should_run(run: ShouldRun) -> ShouldRun { let builder = run.builder; -- run.path($path).default_condition(builder.build.config.extended) -+ run.path($path).default_condition(builder.build.config.extended -+ && builder.build.config.tools.as_ref().map_or(true, |t| t.contains($tool_name))) +- run.path($path).default_condition(builder.config.extended) ++ run.path($path).default_condition(builder.config.extended ++ && builder.config.tools.as_ref().map_or(true, |t| t.contains($tool_name))) } fn make_run(run: RunConfig) { |