aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-03-01 14:08:42 -0800
committerDan Willemsen <dwillemsen@google.com>2016-03-01 17:30:59 -0800
commit97cae01e92262ebdc601cf639a8b9d406866a6c1 (patch)
treef73883f62c62283277960f14cb7a7c12fd595aff
parentb77bd796c24ed99827edde94a5fa03297e696f0e (diff)
downloadbuild_soong-97cae01e92262ebdc601cf639a8b9d406866a6c1.tar.gz
build_soong-97cae01e92262ebdc601cf639a8b9d406866a6c1.tar.bz2
build_soong-97cae01e92262ebdc601cf639a8b9d406866a6c1.zip
Replace Device_uses_{dl,je}malloc with Malloc_not_svelte
This no longer switches between dlmalloc and jemalloc, it just changes the jemalloc cflags for non-svelte devices. Change-Id: Ic6975de89a53a42e4735dbdcde68367ebfc42f9b
-rw-r--r--common/variable.go25
1 files changed, 9 insertions, 16 deletions
diff --git a/common/variable.go b/common/variable.go
index e9f59151..04856e1a 100644
--- a/common/variable.go
+++ b/common/variable.go
@@ -29,16 +29,6 @@ func init() {
type variableProperties struct {
Product_variables struct {
- Device_uses_dlmalloc struct {
- Cflags []string
- Srcs []string
- }
- Device_uses_jemalloc struct {
- Cflags []string
- Srcs []string
- Whole_static_libs []string
- Include_dirs []string
- }
Platform_sdk_version struct {
Asflags []string
}
@@ -52,15 +42,17 @@ type variableProperties struct {
Brillo struct {
Version_script *string `android:"arch_variant"`
} `android:"arch_variant"`
+
+ Malloc_not_svelte struct {
+ Cflags []string
+ }
} `android:"arch_variant"`
}
var zeroProductVariables variableProperties
type productVariables struct {
- Device_uses_jemalloc *bool `json:",omitempty"`
- Device_uses_dlmalloc *bool `json:",omitempty"`
- Platform_sdk_version *int `json:",omitempty"`
+ Platform_sdk_version *int `json:",omitempty"`
DeviceName *string `json:",omitempty"`
DeviceArch *string `json:",omitempty"`
@@ -81,8 +73,9 @@ type productVariables struct {
CrossHostArch *string `json:",omitempty"`
CrossHostSecondaryArch *string `json:",omitempty"`
- Unbundled_build *bool `json:",omitempty"`
- Brillo *bool `json:",omitempty"`
+ Unbundled_build *bool `json:",omitempty"`
+ Brillo *bool `json:",omitempty"`
+ Malloc_not_svelte *bool `json:",omitempty"`
}
func boolPtr(v bool) *bool {
@@ -99,7 +92,6 @@ func stringPtr(v string) *string {
func (v *productVariables) SetDefaultConfig() {
*v = productVariables{
- Device_uses_dlmalloc: boolPtr(true),
Platform_sdk_version: intPtr(22),
HostArch: stringPtr("x86_64"),
HostSecondaryArch: stringPtr("x86"),
@@ -112,6 +104,7 @@ func (v *productVariables) SetDefaultConfig() {
DeviceSecondaryArchVariant: stringPtr("armv7-a-neon"),
DeviceSecondaryCpuVariant: stringPtr("denver"),
DeviceSecondaryAbi: &[]string{"armeabi-v7a"},
+ Malloc_not_svelte: boolPtr(false),
}
if runtime.GOOS == "linux" {