From: Benjamin Kramer Date: Thu, 15 Aug 2019 18:06:30 +0000 (+0000) Subject: Link libpthread into LLVMCore.so X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e8fce3e3d8674a4c7dfba2699b071180f03153f;p=llvm Link libpthread into LLVMCore.so After r369018 the compiler can inline pthread calls into users of RWMutex. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369029 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/CMakeLists.txt b/lib/IR/CMakeLists.txt index b1293194800..a9012637277 100644 --- a/lib/IR/CMakeLists.txt +++ b/lib/IR/CMakeLists.txt @@ -61,6 +61,8 @@ add_llvm_library(LLVMCore ADDITIONAL_HEADER_DIRS ${LLVM_MAIN_INCLUDE_DIR}/llvm/IR + LINK_LIBS ${LLVM_PTHREAD_LIB} + DEPENDS intrinsics_gen )