[llvm] 771e694 - [ORC] Add dependence on pthreads library to ORC.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 10 19:35:29 PDT 2021


Author: Lang Hames
Date: 2021-10-10T19:34:34-07:00
New Revision: 771e69484a442b80b3c0fe3dd4306c9702e9a81f

URL: https://github.com/llvm/llvm-project/commit/771e69484a442b80b3c0fe3dd4306c9702e9a81f
DIFF: https://github.com/llvm/llvm-project/commit/771e69484a442b80b3c0fe3dd4306c9702e9a81f.diff

LOG: [ORC] Add dependence on pthreads library to ORC.

f3411616896 introduced a dependence (for builds with LLVM_ENABLE_THREADS) on
pthreads. This commit updates the CMakeLists.txt file to include a LINK_LIBS
entry for pthreads.

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt b/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt
index 390cfe65e68b..7e9180cf7f68 100644
--- a/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt
+++ b/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt
@@ -40,6 +40,9 @@ add_llvm_component_library(LLVMOrcJIT
   DEPENDS
   intrinsics_gen
 
+  LINK_LIBS
+  ${LLVM_PTHREAD_LIB}
+
   LINK_COMPONENTS
   Core
   ExecutionEngine


        


More information about the llvm-commits mailing list