diff options
author | Colin Cross <ccross@android.com> | 2015-03-18 13:28:46 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2015-03-19 10:51:41 -0700 |
commit | 5049f02e6040f38aff9722579fc7cc8c05ff9885 (patch) | |
tree | 5b2a99cc229bfdf5d598536b5b4402979fd3529c /common/arch.go | |
parent | 70a255f3c9f9f549740befff8f3ec1974102df5e (diff) | |
download | build_soong-5049f02e6040f38aff9722579fc7cc8c05ff9885.tar.gz build_soong-5049f02e6040f38aff9722579fc7cc8c05ff9885.tar.bz2 build_soong-5049f02e6040f38aff9722579fc7cc8c05ff9885.zip |
Add gensrcs module type
gensrcs allows sources to be generated by a specified command.
Change-Id: I725086fcdcd72bfe6c07fb8903e7b520678a247f
Diffstat (limited to 'common/arch.go')
-rw-r--r-- | common/arch.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/arch.go b/common/arch.go index bc2a9d94..cb4e998d 100644 --- a/common/arch.go +++ b/common/arch.go @@ -280,6 +280,10 @@ func ArchMutator(mctx blueprint.EarlyMutatorContext) { } } + if len(arches) == 0 { + return + } + archNames := []string{} for _, arch := range arches { archNames = append(archNames, arch.String()) @@ -301,8 +305,6 @@ func InitArchModule(m AndroidModule, defaultMultilib Multilib, base.commonProperties.Compile_multilib = string(defaultMultilib) base.generalProperties = append(base.generalProperties, - &base.commonProperties) - base.generalProperties = append(base.generalProperties, propertyStructs...) for _, properties := range base.generalProperties { |