[asan] define ASAN_DYNAMIC=1 if PIC is defined

llvm-svn: 208530
This commit is contained in:
Kostya Serebryany 2014-05-12 09:45:39 +00:00
parent d5de13e4d6
commit 9c81b31568
1 changed files with 5 additions and 1 deletions

View File

@ -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