rule_dup fix
parent
c21d6dc054
commit
31e19a5ba4
4
main.cc
4
main.cc
|
@ -455,8 +455,10 @@ struct ObState: CsState {
|
||||||
bool inherit_deps) {
|
bool inherit_deps) {
|
||||||
Rule *oldr = nullptr;
|
Rule *oldr = nullptr;
|
||||||
for (auto &rule: rules.iter())
|
for (auto &rule: rules.iter())
|
||||||
if (ptgt == rule.target)
|
if (ptgt == rule.target) {
|
||||||
oldr = &rule;
|
oldr = &rule;
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (!oldr)
|
if (!oldr)
|
||||||
return;
|
return;
|
||||||
Rule &r = rules.push();
|
Rule &r = rules.push();
|
||||||
|
|
Loading…
Reference in New Issue