diff options
-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 |