From 0a74c3e06ec00f2825e9f4d46bde6285dc43a492 Mon Sep 17 00:00:00 2001 From: Tri Vo Date: Thu, 1 Apr 2021 13:59:27 -0700 Subject: 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 --- rust/androidmk.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rust/androidmk.go') 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} -- cgit v1.2.3-59-g8ed1b