[ORC] Add dependence on pthreads library to ORC.
authorLang Hames <lhames@gmail.com>
Mon, 11 Oct 2021 02:32:54 +0000 (19:32 -0700)
committerLang Hames <lhames@gmail.com>
Mon, 11 Oct 2021 02:34:34 +0000 (19:34 -0700)
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.

llvm/lib/ExecutionEngine/Orc/CMakeLists.txt

index 390cfe6..7e9180c 100644 (file)
@@ -40,6 +40,9 @@ add_llvm_component_library(LLVMOrcJIT
   DEPENDS
   intrinsics_gen
 
+  LINK_LIBS
+  ${LLVM_PTHREAD_LIB}
+
   LINK_COMPONENTS
   Core
   ExecutionEngine