From 771e69484a442b80b3c0fe3dd4306c9702e9a81f Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Sun, 10 Oct 2021 19:32:54 -0700 Subject: [PATCH] [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. --- llvm/lib/ExecutionEngine/Orc/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt b/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt index 390cfe6..7e9180c 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 -- 2.7.4