summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CMakeLists.txt
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-03-01 15:54:40 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-03-01 15:54:40 +0000
commit5cd721ae120eec72b795105830c76a087cd32dca (patch)
treeea98b272b3df007789383f99f7ca62eebdbb3329 /llvm/lib/CodeGen/CMakeLists.txt
parenta029b79e1a71b46b3e8d0ace236a2d935643cf7b (diff)
downloadbcm5719-llvm-5cd721ae120eec72b795105830c76a087cd32dca.tar.gz
bcm5719-llvm-5cd721ae120eec72b795105830c76a087cd32dca.zip
Refactor duplicated code for linking with pthread.
llvm-svn: 262344
Diffstat (limited to 'llvm/lib/CodeGen/CMakeLists.txt')
-rw-r--r--llvm/lib/CodeGen/CMakeLists.txt7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/CMakeLists.txt b/llvm/lib/CodeGen/CMakeLists.txt
index de6d21dde5e..6ebde1aed53 100644
--- a/llvm/lib/CodeGen/CMakeLists.txt
+++ b/llvm/lib/CodeGen/CMakeLists.txt
@@ -1,8 +1,3 @@
-set(system_libs)
-if(CMAKE_HOST_UNIX AND LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD)
- set(system_libs ${system_libs} pthread)
-endif()
-
add_llvm_library(LLVMCodeGen
AggressiveAntiDepBreaker.cpp
AllocationOrder.cpp
@@ -135,7 +130,7 @@ add_llvm_library(LLVMCodeGen
${LLVM_MAIN_INCLUDE_DIR}/llvm/CodeGen
${LLVM_MAIN_INCLUDE_DIR}/llvm/CodeGen/PBQP
- LINK_LIBS ${system_libs}
+ LINK_LIBS ${PTHREAD_LIB}
)
add_dependencies(LLVMCodeGen intrinsics_gen)
OpenPOWER on IntegriCloud