master
Daniel Kolesa 2015-12-29 13:55:33 +01:00
parent 167d216226
commit 4618694303
1 changed files with 4 additions and 7 deletions

11
main.cc
View File

@ -334,13 +334,10 @@ struct ObState: CsState {
}); });
Bytecode *func = nullptr; Bytecode *func = nullptr;
bool act = false; bool act = false;
for (auto &sr: rlist.iter()) { for (auto &sr: rlist.iter()) if (sr.rule->func) {
Rule &r = *sr.rule; func = &sr.rule->func;
if (r.func) { act = sr.rule->action;
func = &r.func; break;
act = r.action;
break;
}
} }
if ((!ret && (act || ob_check_exec(tname, subdeps))) && func) { if ((!ret && (act || ob_check_exec(tname, subdeps))) && func) {
StackedValue targetv, sourcev, sourcesv; StackedValue targetv, sourcev, sourcesv;