[llvm] r246365 - Fix shared library build.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 29 15:34:34 PDT 2015
Author: pcc
Date: Sat Aug 29 17:34:34 2015
New Revision: 246365
URL: http://llvm.org/viewvc/llvm-project?rev=246365&view=rev
Log:
Fix shared library build.
Modified:
llvm/trunk/lib/CodeGen/CMakeLists.txt
Modified: llvm/trunk/lib/CodeGen/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CMakeLists.txt?rev=246365&r1=246364&r2=246365&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CMakeLists.txt (original)
+++ llvm/trunk/lib/CodeGen/CMakeLists.txt Sat Aug 29 17:34:34 2015
@@ -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)
More information about the llvm-commits
mailing list