aboutsummaryrefslogtreecommitdiffstats
path: root/genrule
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-10-12 14:38:15 -0700
committerColin Cross <ccross@android.com>2016-10-12 15:33:33 -0700
commit1e676bef94d84d8800a23b8ed897b24a157173cd (patch)
tree8e22d852a05b65925a0b696dd54d528aae7aae3b /genrule
parent798bfce9d00217716eaee2256878db625b9e6e2e (diff)
downloadbuild_soong-1e676bef94d84d8800a23b8ed897b24a157173cd.tar.gz
build_soong-1e676bef94d84d8800a23b8ed897b24a157173cd.tar.bz2
build_soong-1e676bef94d84d8800a23b8ed897b24a157173cd.zip
Control mutator order
Register mutators inside lambdas that are called in a defined order to correctly order mutators before and after the arch and deps mutators. Test: build.ninja identical Change-Id: Iefe2a3515aee8570e76a6e76925db4cda0e9e822
Diffstat (limited to 'genrule')
-rw-r--r--genrule/genrule.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/genrule/genrule.go b/genrule/genrule.go
index baa6b335..f70c5fc3 100644
--- a/genrule/genrule.go
+++ b/genrule/genrule.go
@@ -25,8 +25,6 @@ import (
func init() {
android.RegisterModuleType("gensrcs", GenSrcsFactory)
android.RegisterModuleType("genrule", GenRuleFactory)
-
- android.RegisterBottomUpMutator("genrule_deps", genruleDepsMutator).Parallel()
}
var (
@@ -95,7 +93,7 @@ func (g *generator) GeneratedHeaderDir() android.Path {
return g.genPath
}
-func genruleDepsMutator(ctx android.BottomUpMutatorContext) {
+func (g *generator) DepsMutator(ctx android.BottomUpMutatorContext) {
if g, ok := ctx.Module().(*generator); ok {
if g.properties.Tool != "" {
ctx.AddFarVariationDependencies([]blueprint.Variation{