aboutsummaryrefslogtreecommitdiff
path: root/android/variable.go
diff options
context:
space:
mode:
authorHang Lu <quic_hangl@quicinc.com>2023-03-17 13:17:22 +0800
committerEvgenii Stepanov <eugenis@google.com>2023-05-02 22:44:03 +0000
commit88086621d16359e1f1925f417dc66e6daca39dac (patch)
treeae71baa6e3d589c87214394a9140704207660a38 /android/variable.go
parente03c3bb67c9e6556bf87203475e41d5c965c3697 (diff)
downloadsoong-88086621d16359e1f1925f417dc66e6daca39dac.tar.gz
Enable HWASan for multiple modules in one place(Soong)
Environment variables HWASAN_INCLUDE_PATHS and PRODUCT_HWASAN_INCLUDE_PATHS can be used to enable HWASan for multiple modules, by just adding the module directory to the env variable. Bug: b/271948407 Test: Set specific module directory to above env variable and check the assembly codes of output elf files after building, finding hwasan related symbols inside. Merged-In: Ic49b515830c4469ca5fa94f547b26c0fb602fc54 Change-Id: Ic49b515830c4469ca5fa94f547b26c0fb602fc54 (cherry picked from commit a98aab98c45aa7245cd235b8822de35aa6eb4fd6)
Diffstat (limited to 'android/variable.go')
-rw-r--r--android/variable.go2
1 files changed, 2 insertions, 0 deletions
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"`