summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-08-29 22:34:34 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-08-29 22:34:34 +0000
commit79bf113dca6aac999c9588720d5d3e6c3ae39d48 (patch)
tree3ed198a7c5c2b03ec3271c9e1b03527016e31182 /llvm/lib
parentf8d55f7e4eb181f4e0b0b5f61b0bff41b305dda9 (diff)
downloadbcm5719-llvm-79bf113dca6aac999c9588720d5d3e6c3ae39d48.tar.gz
bcm5719-llvm-79bf113dca6aac999c9588720d5d3e6c3ae39d48.zip
Fix shared library build.
llvm-svn: 246365
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CMakeLists.txt b/llvm/lib/CodeGen/CMakeLists.txt
index f77141b3f30..b2a1efc9c25 100644
--- a/llvm/lib/CodeGen/CMakeLists.txt
+++ b/llvm/lib/CodeGen/CMakeLists.txt
@@ -1,3 +1,8 @@
+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
@@ -129,6 +134,8 @@ add_llvm_library(LLVMCodeGen
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/CodeGen
${LLVM_MAIN_INCLUDE_DIR}/llvm/CodeGen/PBQP
+
+ LINK_LIBS ${system_libs}
)
add_dependencies(LLVMCodeGen intrinsics_gen)
OpenPOWER on IntegriCloud