summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-03-29 12:13:51 -0700
committerColin Cross <ccross@android.com>2019-04-01 16:58:15 +0000
commit2a5ed2d335da8a455c217cee631ce6b95e73e7be (patch)
tree62e711670035bf235c7a387aaf8ec570576e7b11
parente40d01b28a9e2ed594f691d45b8a55abd53c07bf (diff)
downloadlibchrome-oreo-mr1-iot-release.tar.gz
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
-rw-r--r--soong/bindings_generator.go2
1 files changed, 2 insertions, 0 deletions
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{