aboutsummaryrefslogtreecommitdiffstats
path: root/common/arch.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-03-17 15:06:21 -0700
committerColin Cross <ccross@android.com>2015-03-17 15:11:14 -0700
commitc472d57f579a7d27ff77df9e6e997a33a0c5d098 (patch)
tree1b824f170895db912d6284e9c8a0316f13b18bd6 /common/arch.go
parente2e6fc2b377f5657aad792250d78eb621ac56102 (diff)
downloadbuild_soong-c472d57f579a7d27ff77df9e6e997a33a0c5d098.tar.gz
build_soong-c472d57f579a7d27ff77df9e6e997a33a0c5d098.tar.bz2
build_soong-c472d57f579a7d27ff77df9e6e997a33a0c5d098.zip
Refactor cc compiling to shared ccBase and ccDynamic initialization
Refactor common code out of NewCC* to initialize the ccBase, ccDynamic, and ccLibrary structures. Also adds an enum for the default multilib values. Change-Id: Iaeffe86bf2568b6054be4ddcee725818af45e14f
Diffstat (limited to 'common/arch.go')
-rw-r--r--common/arch.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/arch.go b/common/arch.go
index 8daade0f..bc2a9d94 100644
--- a/common/arch.go
+++ b/common/arch.go
@@ -293,12 +293,12 @@ func ArchMutator(mctx blueprint.EarlyMutatorContext) {
}
}
-func InitArchModule(m AndroidModule, defaultMultilib string,
+func InitArchModule(m AndroidModule, defaultMultilib Multilib,
propertyStructs ...interface{}) (blueprint.Module, []interface{}) {
base := m.base()
- base.commonProperties.Compile_multilib = defaultMultilib
+ base.commonProperties.Compile_multilib = string(defaultMultilib)
base.generalProperties = append(base.generalProperties,
&base.commonProperties)