From 8d0a57ac40e1be62f700df32ec402f9f09eb6946 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 25 Nov 2018 15:26:26 +0100 Subject: Temporary always build binaries --- backend/ninja/Ninja.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'backend') 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; -- cgit v1.2.3