diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2012-09-28 10:07:53 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2012-09-28 10:07:53 +0000 |
commit | 9712af9ce7f5efc14cb11af2599fd065e7b7a3dd (patch) | |
tree | afb8a04cb62bf28aaf748359bb19ac3de67a47b2 /lib/asan/asan_internal.h | |
parent | 678e5436c6c1ecbd0cf50ce80bc7a2afb904c0ef (diff) | |
download | compiler-rt-9712af9ce7f5efc14cb11af2599fd065e7b7a3dd.tar.gz compiler-rt-9712af9ce7f5efc14cb11af2599fd065e7b7a3dd.tar.bz2 compiler-rt-9712af9ce7f5efc14cb11af2599fd065e7b7a3dd.tar.xz |
[asan] Change defaults for Android target.
This way building without -DASAN_* in CFLAGS produces working binaries.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_internal.h')
-rw-r--r-- | lib/asan/asan_internal.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/asan/asan_internal.h b/lib/asan/asan_internal.h index d9ab0af9..178a3b73 100644 --- a/lib/asan/asan_internal.h +++ b/lib/asan/asan_internal.h @@ -62,7 +62,11 @@ // If set, asan will install its own SEGV signal handler. #ifndef ASAN_NEEDS_SEGV -# define ASAN_NEEDS_SEGV 1 +# ifdef ASAN_ANDROID +# define ASAN_NEEDS_SEGV 0 +# else +# define ASAN_NEEDS_SEGV 1 +# endif #endif // If set, asan will intercept C++ exception api call(s). @@ -79,7 +83,11 @@ // If set, values like allocator chunk size, as well as defaults for some flags // will be changed towards less memory overhead. #ifndef ASAN_LOW_MEMORY -# define ASAN_LOW_MEMORY 0 +# ifdef ASAN_ANDROID +# define ASAN_LOW_MEMORY 1 +# else +# define ASAN_LOW_MEMORY 0 +# endif #endif // All internal functions in asan reside inside the __asan namespace |