From f3f053984698845828f169b1bcc09065bf9fe848 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 25 Nov 2018 15:24:08 +0100 Subject: Add option to always run build --- src/Ninja.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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 "; -- cgit v1.2.3