summaryrefslogtreecommitdiff
path: root/rust/androidmk.go
diff options
context:
space:
mode:
author Tri Vo <trong@google.com> 2021-04-01 13:59:27 -0700
committer Tri Vo <trong@google.com> 2021-04-09 10:59:23 -0700
commit0a74c3e06ec00f2825e9f4d46bde6285dc43a492 (patch)
treed3413a35ef2ec7f17889d8cdfe75bdba202934e7 /rust/androidmk.go
parent6eafc36e60a88f51563cf041e92d600c2eb27edc (diff)
rust: Add HWASan build support
HWASan for static Rust executables is not supported yet. Bug: 180495975 Test: build local test app with HWASan Change-Id: I46e851c82a16943586ec3a789f09a58651d036e3
Diffstat (limited to 'rust/androidmk.go')
-rw-r--r--rust/androidmk.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/androidmk.go b/rust/androidmk.go
index b0e69677a..dea32a34d 100644
--- a/rust/androidmk.go
+++ b/rust/androidmk.go
@@ -70,6 +70,11 @@ func (mod *Module) AndroidMkEntries() []android.AndroidMkEntries {
// If the compiler is disabled, this is a SourceProvider.
mod.SubAndroidMk(&ret, mod.sourceProvider)
}
+
+ if mod.sanitize != nil {
+ mod.SubAndroidMk(&ret, mod.sanitize)
+ }
+
ret.SubName += mod.Properties.SubName
return []android.AndroidMkEntries{ret}