LLgen won't update the output file timestamp if the file contents doesn't
authorDavid Given <dg@cowlark.com>
Wed, 15 Nov 2017 18:41:39 +0000 (19:41 +0100)
committerDavid Given <dg@cowlark.com>
Wed, 15 Nov 2017 18:41:39 +0000 (19:41 +0100)
change, which confuses ninja no end. Fix this.

Fixes: #68

util/LLgen/build.lua

index 9cde563..36e796f 100644 (file)
@@ -42,7 +42,7 @@ definerule("llgen",
                                e.srcs,
                        },
                        commands = {
-                               "cd %{dir} && %{abspath(ins)}"
+                               "cd %{dir} && rm -f %{outs} && %{abspath(ins)}"
                        }
                }
        end