Skip to content

Commit fafd59a

Browse files
committed
Fix Issue 112009
1 parent 32aa405 commit fafd59a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/bootstrap/builder.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,14 @@ impl StepDescription {
303303
}
304304

305305
fn maybe_run(&self, builder: &Builder<'_>, pathsets: Vec<PathSet>) {
306-
if pathsets.iter().any(|set| self.is_excluded(builder, set)) {
307-
return;
308-
}
306+
let excluded_pathsets: Vec<PathSet> =
307+
pathsets.iter().filter(|set| !self.is_excluded(builder, set)).clone().collect();
309308

310309
// Determine the targets participating in this rule.
311310
let targets = if self.only_hosts { &builder.hosts } else { &builder.targets };
312311

313312
for target in targets {
314-
let run = RunConfig { builder, paths: pathsets.clone(), target: *target };
313+
let run = RunConfig { builder, paths: excluded_pathsets.clone(), target: *target };
315314
(self.make_run)(run);
316315
}
317316
}

0 commit comments

Comments
 (0)