aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-11-25 15:24:08 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:28:02 +0200
commitf3f053984698845828f169b1bcc09065bf9fe848 (patch)
tree81b7c119087c2b53f535533a9266e49422b1edac /src
parent640c0a8d3470c1276fa8c600760cfc3c75731bf9 (diff)
Add option to always run build
Diffstat (limited to 'src')
-rw-r--r--src/Ninja.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Ninja.cpp b/src/Ninja.cpp
index 5470d2b..09df2c1 100644
--- a/src/Ninja.cpp
+++ b/src/Ninja.cpp
@@ -214,6 +214,8 @@ namespace ninja
result += "\n\n";
}
+ result += "build always: phony\n\n";
+
for(const NinjaBuild *build : builds)
{
result += "build ";
@@ -232,6 +234,9 @@ namespace ninja
}
}
+ if(build->alwaysRun)
+ result += " | always";
+
for(const NinjaArgValue &additionalArg : build->additionalArgs)
{
result += "\n ";