diff options
Diffstat (limited to 'backend/ninja')
-rw-r--r-- | backend/ninja/Ninja.cpp | 10 |
1 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; |