[compiler-rt] r190794 - [ASan] Don't link with pthread on Android
Alexey Samsonov
samsonov at google.com
Mon Sep 16 09:51:49 PDT 2013
Author: samsonov
Date: Mon Sep 16 11:51:49 2013
New Revision: 190794
URL: http://llvm.org/viewvc/llvm-project?rev=190794&view=rev
Log:
[ASan] Don't link with pthread on Android
Modified:
compiler-rt/trunk/lib/asan/tests/CMakeLists.txt
Modified: compiler-rt/trunk/lib/asan/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/CMakeLists.txt?rev=190794&r1=190793&r2=190794&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/asan/tests/CMakeLists.txt Mon Sep 16 11:51:49 2013
@@ -91,7 +91,10 @@ endif()
set(ASAN_UNITTEST_NOINST_LINKFLAGS
${ASAN_UNITTEST_COMMON_LINKFLAGS}
- -lpthread -ldl)
+ -ldl)
+if(NOT ANDROID)
+ list(APPEND ASAN_UNITTEST_NOINST_LINKFLAGS -lpthread)
+endif()
# Compile source for the given architecture, using compiler
# options in ${ARGN}, and add it to the object list.
More information about the llvm-commits
mailing list