diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2012-08-27 11:15:55 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2012-08-27 11:15:55 +0000 |
commit | 3891ce634380845d337cd865e559f4abbdc8ebdb (patch) | |
tree | 6333c90d33df9d35e9fb9772a0e8f74bd550515f /lib/asan/asan_linux.cc | |
parent | 70e177e29c6f9ac987b65a79f6b4f3ebdabc75cc (diff) | |
download | compiler-rt-3891ce634380845d337cd865e559f4abbdc8ebdb.tar.gz compiler-rt-3891ce634380845d337cd865e559f4abbdc8ebdb.tar.bz2 compiler-rt-3891ce634380845d337cd865e559f4abbdc8ebdb.tar.xz |
A few tweaks for building ASanRT against Android NDK.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162666 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_linux.cc')
-rw-r--r-- | lib/asan/asan_linux.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asan/asan_linux.cc b/lib/asan/asan_linux.cc index ddaefb29..e5d1f52d 100644 --- a/lib/asan/asan_linux.cc +++ b/lib/asan/asan_linux.cc @@ -31,7 +31,7 @@ #include <unistd.h> #include <unwind.h> -#ifndef ANDROID +#if !ASAN_ANDROID // FIXME: where to get ucontext on Android? #include <sys/ucontext.h> #endif @@ -50,7 +50,7 @@ void *AsanDoesNotSupportStaticLinkage() { } void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) { -#ifdef ANDROID +#if ASAN_ANDROID *pc = *sp = *bp = 0; #elif defined(__arm__) ucontext_t *ucontext = (ucontext_t*)context; |