[llvm] 819a7f9 - [Debuginfod] Try to fix clang-ppc64le-rhel build

Noah Shutty via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 6 21:15:31 PDT 2022


Author: Noah Shutty
Date: 2022-07-07T04:13:30Z
New Revision: 819a7f98cd6d8fce948d78275f7011e08bd4bb18

URL: https://github.com/llvm/llvm-project/commit/819a7f98cd6d8fce948d78275f7011e08bd4bb18
DIFF: https://github.com/llvm/llvm-project/commit/819a7f98cd6d8fce948d78275f7011e08bd4bb18.diff

LOG: [Debuginfod] Try to fix clang-ppc64le-rhel build

Added: 
    

Modified: 
    llvm/lib/Debuginfod/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Debuginfod/CMakeLists.txt b/llvm/lib/Debuginfod/CMakeLists.txt
index a77becb481a6..0bd6ad15a29d 100644
--- a/llvm/lib/Debuginfod/CMakeLists.txt
+++ b/llvm/lib/Debuginfod/CMakeLists.txt
@@ -8,6 +8,11 @@ if (LLVM_ENABLE_HTTPLIB)
   set(imported_libs ${imported_libs} httplib::httplib)
 endif()
 
+# Make sure pthread is linked if this is a unix host
+if (CMAKE_HOST_UNIX)
+  set(imported_libs ${imported_libs} ${LLVM_PTHREAD_LIB})
+endif()
+
 # Note: This isn't a component, since that could potentially add a libcurl
 # dependency to libLLVM.
 add_llvm_library(LLVMDebuginfod


        


More information about the llvm-commits mailing list