USE_SAFESTACK support in Soong.
Translated into product_variables.safestack.cflags.
Change-Id: Ieb55c050448ff04793431c249f482f2d4364e67a
diff --git a/common/variable.go b/common/variable.go
index 7f8a6e6..0b5df07 100644
--- a/common/variable.go
+++ b/common/variable.go
@@ -46,6 +46,10 @@
Malloc_not_svelte struct {
Cflags []string
}
+
+ Safestack struct {
+ Cflags []string `android:"arch_variant"`
+ } `android:"arch_variant"`
} `android:"arch_variant"`
}
@@ -80,6 +84,7 @@
Unbundled_build *bool `json:",omitempty"`
Brillo *bool `json:",omitempty"`
Malloc_not_svelte *bool `json:",omitempty"`
+ Safestack *bool `json:",omitempty"`
SanitizeHost *[]string `json:",omitempty"`
SanitizeDevice *[]string `json:",omitempty"`
@@ -113,6 +118,7 @@
DeviceSecondaryCpuVariant: stringPtr("denver"),
DeviceSecondaryAbi: &[]string{"armeabi-v7a"},
Malloc_not_svelte: boolPtr(false),
+ Safestack: boolPtr(false),
}
if runtime.GOOS == "linux" {