diff options
author | Colin Cross <ccross@android.com> | 2016-10-12 14:38:15 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2016-10-12 15:33:33 -0700 |
commit | 1e676bef94d84d8800a23b8ed897b24a157173cd (patch) | |
tree | 8e22d852a05b65925a0b696dd54d528aae7aae3b /android/variable.go | |
parent | 798bfce9d00217716eaee2256878db625b9e6e2e (diff) | |
download | android_build_soong-1e676bef94d84d8800a23b8ed897b24a157173cd.tar.gz android_build_soong-1e676bef94d84d8800a23b8ed897b24a157173cd.tar.bz2 android_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 'android/variable.go')
-rw-r--r-- | android/variable.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/android/variable.go b/android/variable.go index 29d6c7de..ac7c730a 100644 --- a/android/variable.go +++ b/android/variable.go @@ -24,7 +24,9 @@ import ( ) func init() { - RegisterBottomUpMutator("variable", variableMutator).Parallel() + PreDepsMutators(func(ctx RegisterMutatorsContext) { + ctx.BottomUp("variable", variableMutator).Parallel() + }) } type variableProperties struct { |