aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/soong_build
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-05-07 14:11:29 -0700
committerColin Cross <ccross@google.com>2015-05-09 00:10:19 +0000
commitd3ba039f74da29fc3d4184850e6e29acba58057c (patch)
tree8fa86124d4c62f351be43338891ff2b3782ebfbf /cmd/soong_build
parentaf11df153818e2d4be62da430cd386b66580f7a0 (diff)
downloadbuild_soong-d3ba039f74da29fc3d4184850e6e29acba58057c.tar.gz
build_soong-d3ba039f74da29fc3d4184850e6e29acba58057c.tar.bz2
build_soong-d3ba039f74da29fc3d4184850e6e29acba58057c.zip
Separate HostOrDevice out of Arch
Take HostOrDevice out of Arch, and put it into AndroidModuleBase instead. Also separate out the host vs. device mutator from ArchMutator. This will make it possible for genrules to depend on a host tool, regardless of which host arches it is compiled for. Change-Id: I22bbfd28b65c3eebdfa101a712f90dd615148dc8
Diffstat (limited to 'cmd/soong_build')
-rw-r--r--cmd/soong_build/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/soong_build/main.go b/cmd/soong_build/main.go
index f8c32cbf..b7c4198e 100644
--- a/cmd/soong_build/main.go
+++ b/cmd/soong_build/main.go
@@ -75,6 +75,7 @@ func main() {
ctx.RegisterModuleType("android_app", java.AndroidAppFactory)
// Mutators
+ ctx.RegisterEarlyMutator("host_or_device", common.HostOrDeviceMutator)
ctx.RegisterEarlyMutator("arch", common.ArchMutator)
ctx.RegisterEarlyMutator("link", cc.LinkageMutator)
ctx.RegisterEarlyMutator("test_per_src", cc.TestPerSrcMutator)