diff options
Diffstat (limited to 'android')
-rw-r--r-- | android/config.go | 7 | ||||
-rw-r--r-- | android/variable.go | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/android/config.go b/android/config.go index 9920fe41b..980460a7b 100644 --- a/android/config.go +++ b/android/config.go @@ -1564,6 +1564,13 @@ func (c *config) MemtagHeapSyncEnabledForPath(path string) bool { return HasAnyPrefix(path, c.productVariables.MemtagHeapSyncIncludePaths) && !c.MemtagHeapDisabledForPath(path) } +func (c *config) HWASanEnabledForPath(path string) bool { + if len(c.productVariables.HWASanIncludePaths) == 0 { + return false + } + return HasAnyPrefix(path, c.productVariables.HWASanIncludePaths) +} + func (c *config) VendorConfig(name string) VendorConfig { return soongconfig.Config(c.productVariables.VendorVars[name]) } diff --git a/android/variable.go b/android/variable.go index d7152b367..496f523b2 100644 --- a/android/variable.go +++ b/android/variable.go @@ -307,6 +307,8 @@ type productVariables struct { MemtagHeapAsyncIncludePaths []string `json:",omitempty"` MemtagHeapSyncIncludePaths []string `json:",omitempty"` + HWASanIncludePaths []string `json:",omitempty"` + VendorPath *string `json:",omitempty"` OdmPath *string `json:",omitempty"` ProductPath *string `json:",omitempty"` |