diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-11-25 15:26:26 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | 8d0a57ac40e1be62f700df32ec402f9f09eb6946 (patch) | |
tree | 7a1fc00b72b8ffc383ec322e719cd03cca010307 | |
parent | 74fe535c397626cdaf5f51dfe6e32706abc4b468 (diff) |
Temporary always build binaries
-rw-r--r-- | backend/ninja/Ninja.cpp | 10 | ||||
m--------- | depends/libninja | 0 |
2 files changed, 7 insertions, 3 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index 37669da..bf5ddf3 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -1187,6 +1187,7 @@ namespace backend ninjaBuild = testZigRule->build("../../../" + sourceFile.filepath, objectName, { zigHeaderFileValue }); else ninjaBuild = compileZigRule->build("../../../" + sourceFile.filepath, objectName, { zigHeaderFileValue }); + ninjaBuild->alwaysRun = true; zigBuilds.push_back(ninjaBuild); objectNames.emplace_back(move(objectName)); @@ -1417,7 +1418,8 @@ namespace backend }); } ninja::NinjaRule *buildExeRule = ninjaBuildFile.createRule("build_exec", buildExeArgs); - buildExeRule->build(objectNames, executableName, {}); + ninja::NinjaBuild *ninjaBuild = buildExeRule->build(objectNames, executableName, {}); + ninjaBuild->alwaysRun = true; } projectGeneratedBinary += executableName; @@ -1493,7 +1495,8 @@ namespace backend } ninja::NinjaRule *buildStaticRule = ninjaBuildFile.createRule("build_static", buildStaticArgs); - buildStaticRule->build(objectNames, generatedFile, {}); + ninja::NinjaBuild *ninjaBuild = buildStaticRule->build(objectNames, generatedFile, {}); + ninjaBuild->alwaysRun = true; } projectGeneratedBinary += generatedFile; @@ -1641,7 +1644,8 @@ namespace backend }); } ninja::NinjaRule *buildDynamicRule = ninjaBuildFile.createRule("build_dynamic", buildDynamicArgs); - buildDynamicRule->build(objectNames, generatedFile, {}); + ninja::NinjaBuild *ninjaBuild = buildDynamicRule->build(objectNames, generatedFile, {}); + ninjaBuild->alwaysRun = true; } projectGeneratedBinary += generatedFile; diff --git a/depends/libninja b/depends/libninja -Subproject 45e57bb16903902a39045fa5e49027d1b6c7af6 +Subproject aa58ac5fb18cedc2c97a4c86f1c10b10b270809 |