Add arch_variant support for diag

Allow for different arch to specify sanitizer options.

Bug: 158010610
Test: Compiles with build options
Change-Id: I4db72f682e920e3c1a6d55473f316e56567636e6
This commit is contained in:
Cindy Zhou 2020-12-01 11:14:30 -08:00
parent f503dc3ba1
commit d3fe49289d

View file

@ -169,14 +169,14 @@ type SanitizeUserProps struct {
Cfi *bool `android:"arch_variant"`
Integer_overflow *bool `android:"arch_variant"`
Misc_undefined []string `android:"arch_variant"`
No_recover []string
}
No_recover []string `android:"arch_variant"`
} `android:"arch_variant"`
// Sanitizers to run with flag configuration specified
Config struct {
// Enables CFI support flags for assembly-heavy libraries
Cfi_assembly_support *bool `android:"arch_variant"`
}
} `android:"arch_variant"`
// value to pass to -fsanitize-recover=
Recover []string