forked from OSchip/llvm-project
[asan] Link sanitizer_common tests on Android as -pie.
llvm-svn: 240825
This commit is contained in:
parent
cfbdba2d0b
commit
609af9098c
|
@ -67,6 +67,10 @@ if(NOT MSVC)
|
|||
list(APPEND SANITIZER_TEST_LINK_FLAGS_COMMON --driver-mode=g++)
|
||||
endif()
|
||||
|
||||
if(ANDROID)
|
||||
list(APPEND SANITIZER_TEST_LINK_FLAGS_COMMON -pie)
|
||||
endif()
|
||||
|
||||
set(SANITIZER_TEST_LINK_LIBS)
|
||||
append_list_if(ANDROID log SANITIZER_TEST_LINK_LIBS)
|
||||
# NDK r10 requires -latomic almost always.
|
||||
|
|
Loading…
Reference in New Issue