Skip to content

Commit

Permalink
Merge pull request rust-lang#37782 from alexcrichton/beta-next
Browse files Browse the repository at this point in the history
Beta backport of rust-lang#37775
  • Loading branch information
brson authored Nov 15, 2016
2 parents 3e2a387 + d376b66 commit d4aea2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bootstrap/step.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ impl<'a> Rules<'a> {
for dep in rule.deps.iter() {
let dep = dep(&self.sbuild.name(rule.name));
if self.rules.contains_key(&dep.name) || dep.name.starts_with("default:") {
continue }
continue
}
panic!("\
invalid rule dependency graph detected, was a rule added and maybe typo'd?
Expand Down Expand Up @@ -686,8 +687,9 @@ invalid rule dependency graph detected, was a rule added and maybe typo'd?
"dist" => Kind::Dist,
kind => panic!("unknown kind: `{}`", kind),
};
let host = self.build.config.host.iter().any(|h| h == dep.target);
let rules = self.rules.values().filter(|r| r.default);
for rule in rules.filter(|r| r.kind == kind) {
for rule in rules.filter(|r| r.kind == kind && (!r.host || host)) {
self.fill(dep.name(rule.name), order, added);
}
} else {
Expand Down

0 comments on commit d4aea2d

Please sign in to comment.