diff options
author | Kostya Serebryany <kcc@google.com> | 2014-05-12 09:45:39 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2014-05-12 09:45:39 +0000 |
commit | 9c81b315680d33ce20099b7a95db75a88df986d6 (patch) | |
tree | b3041ad6d407a2c2a0e78a1a90cc811e802df82e /compiler-rt/lib/asan/asan_internal.h | |
parent | d5de13e4d61ff5189dba4c4fafeb6eb218091100 (diff) | |
download | bcm5719-llvm-9c81b315680d33ce20099b7a95db75a88df986d6.tar.gz bcm5719-llvm-9c81b315680d33ce20099b7a95db75a88df986d6.zip |
[asan] define ASAN_DYNAMIC=1 if PIC is defined
llvm-svn: 208530
Diffstat (limited to 'compiler-rt/lib/asan/asan_internal.h')
-rw-r--r-- | compiler-rt/lib/asan/asan_internal.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_internal.h b/compiler-rt/lib/asan/asan_internal.h index 4934d6cd715..0c2afdace18 100644 --- a/compiler-rt/lib/asan/asan_internal.h +++ b/compiler-rt/lib/asan/asan_internal.h @@ -50,7 +50,11 @@ #endif #ifndef ASAN_DYNAMIC -# define ASAN_DYNAMIC 0 +# ifdef PIC +# define ASAN_DYNAMIC 1 +# else +# define ASAN_DYNAMIC 0 +# endif #endif // All internal functions in asan reside inside the __asan namespace |