[compiler-rt] r177151 - [Sanitizer] Don't link tests with -lpthread on Android.
Alexey Samsonov
samsonov at google.com
Fri Mar 15 05:54:02 PDT 2013
Author: samsonov
Date: Fri Mar 15 07:54:01 2013
New Revision: 177151
URL: http://llvm.org/viewvc/llvm-project?rev=177151&view=rev
Log:
[Sanitizer] Don't link tests with -lpthread on Android.
Modified:
compiler-rt/trunk/lib/sanitizer_common/tests/CMakeLists.txt
Modified: compiler-rt/trunk/lib/sanitizer_common/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/CMakeLists.txt?rev=177151&r1=177150&r2=177151&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/CMakeLists.txt Fri Mar 15 07:54:01 2013
@@ -31,7 +31,7 @@ set(SANITIZER_TEST_CFLAGS_COMMON
-Wall -Werror -Werror=sign-compare)
set(SANITIZER_TEST_LINK_FLAGS_COMMON
- -lstdc++ -lpthread -ldl)
+ -lstdc++ -ldl)
include_directories(..)
include_directories(../..)
@@ -83,7 +83,7 @@ macro(add_sanitizer_tests_for_arch arch)
${SANITIZER_COMMON_LIB_NAME}
DEPS ${SANITIZER_TEST_OBJECTS} ${SANITIZER_COMMON_LIB}
LINK_FLAGS ${SANITIZER_TEST_LINK_FLAGS_COMMON}
- ${TARGET_FLAGS})
+ -lpthread ${TARGET_FLAGS})
endmacro()
if(COMPILER_RT_CAN_EXECUTE_TESTS)
More information about the llvm-commits
mailing list