Add ability to enable scudo-free 32-bit libc variant.

The default value is set to enable scudo with the
32-bit libc variant.

Change-Id: I9205da12eceadfe6245763a49c7208d30b82ad99
This commit is contained in:
Quallenauge 2020-10-21 21:19:01 +02:00 committed by Bartłomiej Rudecki
parent 90d46b8e4b
commit 878adb61bf
Signed by: przekichane
GPG key ID: 751F23C6F014EF76

View file

@ -81,6 +81,16 @@ type variableProperties struct {
Header_libs []string `android:"arch_variant"`
} `android:"arch_variant"`
Malloc_low_memory_libc32 struct {
Cflags []string `android:"arch_variant"`
Shared_libs []string `android:"arch_variant"`
Whole_static_libs []string `android:"arch_variant"`
Static_libs []string `android:"arch_variant"`
Exclude_static_libs []string `android:"arch_variant"`
Srcs []string `android:"arch_variant"`
Header_libs []string `android:"arch_variant"`
} `android:"arch_variant"`
Malloc_zero_contents struct {
Cflags []string `android:"arch_variant"`
} `android:"arch_variant"`
@ -286,6 +296,7 @@ type ProductVariables struct {
Always_use_prebuilt_sdks *bool `json:",omitempty"`
Skip_boot_jars_check *bool `json:",omitempty"`
Malloc_low_memory *bool `json:",omitempty"`
Malloc_low_memory_libc32 *bool `json:",omitempty"`
Malloc_zero_contents *bool `json:",omitempty"`
Malloc_pattern_fill_contents *bool `json:",omitempty"`
Safestack *bool `json:",omitempty"`
@ -620,6 +631,7 @@ func (v *ProductVariables) SetDefaultConfig() {
AAPTPrebuiltDPI: []string{"xhdpi", "xxhdpi"},
Malloc_low_memory: boolPtr(false),
Malloc_low_memory_libc32: boolPtr(false),
Malloc_zero_contents: boolPtr(true),
Malloc_pattern_fill_contents: boolPtr(false),
Safestack: boolPtr(false),