use new libcubescript api
parent
22eff191ce
commit
2e98d0aecd
10
main.cc
10
main.cc
|
@ -347,19 +347,15 @@ 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;
|
||||||
|
|
||||||
targetv.id = new_ident("target");
|
if (!targetv.alias(*this, "target"))
|
||||||
if (!cscript::check_alias(targetv.id))
|
|
||||||
return 1;
|
return 1;
|
||||||
targetv.set_cstr(tname);
|
targetv.set_cstr(tname);
|
||||||
targetv.push();
|
targetv.push();
|
||||||
|
|
||||||
if (subdeps.size() > 0) {
|
if (subdeps.size() > 0) {
|
||||||
sourcev.id = new_ident("source");
|
if (!sourcev.alias(*this, "source"))
|
||||||
if (!cscript::check_alias(sourcev.id))
|
|
||||||
return 1;
|
return 1;
|
||||||
|
if (!sourcesv.alias(*this, "sources"))
|
||||||
sourcesv.id = new_ident("sources");
|
|
||||||
if (!cscript::check_alias(sourcesv.id))
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
sourcev.set_cstr(subdeps[0]);
|
sourcev.set_cstr(subdeps[0]);
|
||||||
|
|
Loading…
Reference in New Issue