Merge "Disable rust sanitizers for linux_musl_x86" into main am: eb02c5cb7c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2741115 Change-Id: I5e70344b3fa0a96bdf41e4234f985fb400857ba3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -208,6 +208,11 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
|
||||
s.Memtag_heap = nil
|
||||
}
|
||||
|
||||
// Disable sanitizers for musl x86 modules, rustc does not support any sanitizers.
|
||||
if ctx.Os() == android.LinuxMusl && ctx.Arch().ArchType == android.X86 {
|
||||
s.Never = boolPtr(true)
|
||||
}
|
||||
|
||||
// TODO:(b/178369775)
|
||||
// For now sanitizing is only supported on non-windows targets
|
||||
if ctx.Os() != android.Windows && (Bool(s.Hwaddress) || Bool(s.Address) || Bool(s.Memtag_heap) || Bool(s.Fuzzer)) {
|
||||
|
Reference in New Issue
Block a user