Fix shared library build.

llvm-svn: 246365
This commit is contained in:
Peter Collingbourne 2015-08-29 22:34:34 +00:00
parent f8d55f7e4e
commit 79bf113dca
1 changed files with 7 additions and 0 deletions

View File

@ -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)