From 2a5ed2d335da8a455c217cee631ce6b95e73e7be Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 29 Mar 2019 12:13:51 -0700 Subject: Mark mojom_bindings_generator rules as restat mojom_bindings_generator only updates the output file if its contents have changed, add restat to the rule so that ninja checks the timestamp of the file after running the rule and considers it clean if it didn't change. Test: m checkbuild && m checkbuild Change-Id: Ibc155246faa4bc3b4f6fe328904857479a949e14 --- soong/bindings_generator.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soong/bindings_generator.go b/soong/bindings_generator.go index bfa88385c8..2c5e3f672e 100644 --- a/soong/bindings_generator.go +++ b/soong/bindings_generator.go @@ -35,6 +35,7 @@ var ( "${mojomBindingsGenerator}", }, Description: "Mojo pickles generation $in => $out", + Restat: true, }, "package", "flags", "outDir") generateMojomSrcsRule = pctx.StaticRule("generateMojomSrcsRule", blueprint.RuleParams{ @@ -52,6 +53,7 @@ var ( "${mojomBindingsGenerator}", }, Description: "Mojo sources generation $in => $out", + Restat: true, }, "mojomGenerator", "package", "flags", "outDir", "templateDir") mergeSrcjarsRule = pctx.StaticRule("mergeSrcjarsRule", blueprint.RuleParams{ -- cgit v1.2.3