aboutsummaryrefslogtreecommitdiffstats
path: root/genrule
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2019-09-20 10:55:10 -0700
committerDan Willemsen <dwillemsen@google.com>2019-09-20 10:55:10 -0700
commitafeea436eabb3393ac79b75058b9d1be3e2dd343 (patch)
tree6c147ab2b81cdfec7c5ab5694f24780530555945 /genrule
parentde8b140bf6b214bfe67c0dc4c22c656ca44e7da3 (diff)
downloadbuild_soong-afeea436eabb3393ac79b75058b9d1be3e2dd343.tar.gz
build_soong-afeea436eabb3393ac79b75058b9d1be3e2dd343.tar.bz2
build_soong-afeea436eabb3393ac79b75058b9d1be3e2dd343.zip
Switch genrule-phony to ninja phony rule
Instead of using android.Phony, which is a "real" rule, use blueprint.Phony, which is ninja's built-in "phony" rule. That's desired in this case, since we only want this to be an alias to the inputs. Test: cd system/bt; mma; mma (second run had nothing to do) Test: treehugger Change-Id: Ib0b630e23653c05a12cf617350f8b4c6d6d6cdff
Diffstat (limited to 'genrule')
-rw-r--r--genrule/genrule.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/genrule/genrule.go b/genrule/genrule.go
index cf0b484e..b8b0e012 100644
--- a/genrule/genrule.go
+++ b/genrule/genrule.go
@@ -437,7 +437,7 @@ func (g *Module) generateSourceFile(ctx android.ModuleContext, task generateTask
phonyFile := android.PathForModuleGen(ctx, "genrule-phony")
ctx.Build(pctx, android.BuildParams{
- Rule: android.Phony,
+ Rule: blueprint.Phony,
Output: phonyFile,
Inputs: g.outputFiles,
})