From 5049f02e6040f38aff9722579fc7cc8c05ff9885 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 18 Mar 2015 13:28:46 -0700 Subject: Add gensrcs module type gensrcs allows sources to be generated by a specified command. Change-Id: I725086fcdcd72bfe6c07fb8903e7b520678a247f --- common/arch.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common/arch.go') 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()) @@ -300,8 +304,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...) -- cgit v1.2.3