From caa9df54492f9917bd0fac74157af28e309c7700 Mon Sep 17 00:00:00 2001 From: David Given Date: Wed, 15 Nov 2017 19:41:39 +0100 Subject: [PATCH] LLgen won't update the output file timestamp if the file contents doesn't change, which confuses ninja no end. Fix this. Fixes: #68 --- util/LLgen/build.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/LLgen/build.lua b/util/LLgen/build.lua index 9cde5630c..36e796fee 100644 --- a/util/LLgen/build.lua +++ b/util/LLgen/build.lua @@ -42,7 +42,7 @@ definerule("llgen", e.srcs, }, commands = { - "cd %{dir} && %{abspath(ins)}" + "cd %{dir} && rm -f %{outs} && %{abspath(ins)}" } } end