1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

Fix shared library build.

llvm-svn: 246365
This commit is contained in:
Peter Collingbourne 2015-08-29 22:34:34 +00:00
parent f8fbcf73ad
commit 52e37a143f

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)