Disable new LLVM pass manager for HWASan.

Current Android toolchain does not support hwasan with new pm.

Bug: 135298400
Test: manual, inspect the binaries for calls to __hwasan_init
Change-Id: I126c59e6ecabc3a1699e1bf34c546568b6e8a21f
This commit is contained in:
Evgenii Stepanov 2019-06-14 18:37:33 -07:00
parent 9314e1124b
commit 1c69e83030
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,8 @@ var (
hwasanCflags = []string{"-fno-omit-frame-pointer", "-Wno-frame-larger-than=",
"-mllvm", "-hwasan-create-frame-descriptions=0",
"-mllvm", "-hwasan-allow-ifunc",
"-fsanitize-hwaddress-abi=platform"}
"-fsanitize-hwaddress-abi=platform",
"-fno-experimental-new-pass-manager"}
cfiCflags = []string{"-flto", "-fsanitize-cfi-cross-dso",
"-fsanitize-blacklist=external/compiler-rt/lib/cfi/cfi_blacklist.txt"}