[asan] Enable SEGV handler on Android by default.

Seems stable enough.
Fixes null_deref.cc test.

llvm-svn: 201326
This commit is contained in:
Evgeniy Stepanov 2014-02-13 13:43:47 +00:00
parent 3bec7a9c77
commit 8978389a32
2 changed files with 2 additions and 11 deletions

View File

@ -40,14 +40,8 @@ endif()
list(APPEND ASAN_UNITTEST_COMMON_CFLAGS
-DASAN_HAS_BLACKLIST=1
-DASAN_HAS_EXCEPTIONS=1
-DASAN_NEEDS_SEGV=1
-DASAN_UAR=0)
if(ANDROID)
list(APPEND ASAN_UNITTEST_COMMON_CFLAGS
-DASAN_NEEDS_SEGV=0)
else()
list(APPEND ASAN_UNITTEST_COMMON_CFLAGS
-DASAN_NEEDS_SEGV=1)
endif()
set(ASAN_BLACKLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/asan_test.ignore")
set(ASAN_UNITTEST_INSTRUMENTED_CFLAGS

View File

@ -80,10 +80,7 @@ set(SANITIZER_HEADERS
set(SANITIZER_COMMON_DEFINITIONS)
if(ANDROID)
list(APPEND SANITIZER_COMMON_DEFINITIONS
SANITIZER_NEEDS_SEGV=0)
elseif(MSVC)
if(MSVC)
list(APPEND SANITIZER_COMMON_DEFINITIONS
SANITIZER_NEEDS_SEGV=0)
else()