Add support for sanitizer property

Add a new feature to cc modules that adds the cflags and libraries
necessary to implement AddressSanitizer, ThreadSanitizer, and
UndefinedBehaviorSanitizer.

Change-Id: Ibe5ffadc7ece56080a2521f2c7c00da9ef712584
This commit is contained in:
Colin Cross
2016-01-06 14:41:07 -08:00
parent 4a97cb4328
commit 16b2349190
11 changed files with 467 additions and 25 deletions

View File

@@ -77,6 +77,9 @@ type productVariables struct {
Unbundled_build *bool `json:",omitempty"`
Brillo *bool `json:",omitempty"`
Malloc_not_svelte *bool `json:",omitempty"`
SanitizeHost *[]string `json:",omitempty"`
SanitizeDevice *[]string `json:",omitempty"`
}
func boolPtr(v bool) *bool {