minor cleanup
parent
31e19a5ba4
commit
167d216226
7
main.cc
7
main.cc
|
@ -344,16 +344,17 @@ struct ObState: CsState {
|
||||||
}
|
}
|
||||||
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;
|
||||||
|
CsState &cs = *this;
|
||||||
|
|
||||||
if (!targetv.alias(*this, "target"))
|
if (!targetv.alias(cs, "target"))
|
||||||
return 1;
|
return 1;
|
||||||
targetv.set_cstr(tname);
|
targetv.set_cstr(tname);
|
||||||
targetv.push();
|
targetv.push();
|
||||||
|
|
||||||
if (!subdeps.empty()) {
|
if (!subdeps.empty()) {
|
||||||
if (!sourcev.alias(*this, "source"))
|
if (!sourcev.alias(cs, "source"))
|
||||||
return 1;
|
return 1;
|
||||||
if (!sourcesv.alias(*this, "sources"))
|
if (!sourcesv.alias(cs, "sources"))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
sourcev.set_cstr(subdeps[0]);
|
sourcev.set_cstr(subdeps[0]);
|
||||||
|
|
Loading…
Reference in New Issue