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
This commit is contained in:
@@ -24,15 +24,6 @@ import (
|
||||
"github.com/google/blueprint"
|
||||
)
|
||||
|
||||
func init() {
|
||||
RegisterTopDownMutator("load_hooks", loadHookMutator).Parallel()
|
||||
RegisterBottomUpMutator("defaults_deps", defaultsDepsMutator).Parallel()
|
||||
RegisterTopDownMutator("defaults", defaultsMutator).Parallel()
|
||||
|
||||
RegisterBottomUpMutator("arch", ArchMutator).Parallel()
|
||||
RegisterTopDownMutator("arch_hooks", archHookMutator).Parallel()
|
||||
}
|
||||
|
||||
var (
|
||||
DeviceSharedLibrary = "shared_library"
|
||||
DeviceStaticLibrary = "static_library"
|
||||
@@ -100,6 +91,7 @@ type Module interface {
|
||||
blueprint.Module
|
||||
|
||||
GenerateAndroidBuildActions(ModuleContext)
|
||||
DepsMutator(BottomUpMutatorContext)
|
||||
|
||||
base() *ModuleBase
|
||||
Enabled() bool
|
||||
|
Reference in New Issue
Block a user