summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2023-10-11 13:18:37 -0400
committer Ivan Lozano <ivanlozano@google.com> 2023-10-11 13:18:37 -0400
commit839b5f9ac535f3996f15ab78f6837ed1c5deda24 (patch)
treeac1994a8a4206cb46f7d5fb6c3d927421d07a121
parentd56338cc6f99722ee0aee87874153b336732e58d (diff)
rust: Temporarily disable ASAN builds for Host
This is breaking sanitized host builds. Disable the sanitizer in Rust for host targets until this can be resolved. Bug: 304507701 Test: SANITIZE_HOST=address m rust Change-Id: I12b0c3e217717de7a89b32198f4c4729709e99b3
-rw-r--r--rust/sanitize.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/sanitize.go b/rust/sanitize.go
index 2f5afd74d..0b1043597 100644
--- a/rust/sanitize.go
+++ b/rust/sanitize.go
@@ -203,6 +203,11 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
s.Address = nil
}
+ // TODO: Remove once b/304507701 is resolved
+ if Bool(s.Address) && ctx.Host() {
+ s.Address = nil
+ }
+
// Memtag_heap is only implemented on AArch64.
if ctx.Arch().ArchType != android.Arm64 || !ctx.Os().Bionic() {
s.Memtag_heap = nil