forked from OctaForge/OctaBuild
api updates
parent
cc333d404d
commit
e5a44d61a2
6
main.cc
6
main.cc
|
@ -29,7 +29,7 @@ using ostd::Condition;
|
||||||
using cscript::CsState;
|
using cscript::CsState;
|
||||||
using cscript::TvalRange;
|
using cscript::TvalRange;
|
||||||
using cscript::StackedValue;
|
using cscript::StackedValue;
|
||||||
using cscript::Bytecode;
|
using cscript::BytecodeRef;
|
||||||
|
|
||||||
/* glob matching code */
|
/* glob matching code */
|
||||||
|
|
||||||
|
@ -280,7 +280,7 @@ struct ObState: CsState {
|
||||||
struct Rule {
|
struct Rule {
|
||||||
String target;
|
String target;
|
||||||
Vector<String> deps;
|
Vector<String> deps;
|
||||||
Bytecode func;
|
BytecodeRef func;
|
||||||
bool action;
|
bool action;
|
||||||
|
|
||||||
Rule(): target(), deps(), func(), action(false) {}
|
Rule(): target(), deps(), func(), action(false) {}
|
||||||
|
@ -386,7 +386,7 @@ struct ObState: CsState {
|
||||||
int ret = wait_result([&rlist, &subdeps, &tname, this]() {
|
int ret = wait_result([&rlist, &subdeps, &tname, this]() {
|
||||||
return exec_list(rlist, subdeps, tname);
|
return exec_list(rlist, subdeps, tname);
|
||||||
});
|
});
|
||||||
Bytecode *func = nullptr;
|
BytecodeRef *func = nullptr;
|
||||||
bool act = false;
|
bool act = false;
|
||||||
for (auto &sr: rlist.iter()) {
|
for (auto &sr: rlist.iter()) {
|
||||||
if (sr.rule->func) {
|
if (sr.rule->func) {
|
||||||
|
|
Loading…
Reference in New Issue