[PATCH] D111238: [Support][llvm] Add optional libCURL dependency to llvm build configuration
Noah Shutty via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 6 09:23:43 PDT 2021
noajshu created this revision.
Herald added a subscriber: mgorny.
noajshu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This finds the curl libraries if LLVM_ENABLE_DEBUGINFOD_CLIENT is set. This is needed to implement the debuginfod client library in LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111238
Files:
llvm/CMakeLists.txt
Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -402,6 +402,14 @@
set(LLVM_ENABLE_Z3_SOLVER_DEFAULT "${Z3_FOUND}")
+if (LLVM_ENABLE_DEBUGINFOD_CLIENT)
+ set(LLVM_WITH_CURL 1)
+ set(CURL_LIBRARY "-lcurl")
+ find_package(CURL 7.74.0 REQUIRED)
+ add_compile_definitions(
+ LLVM_ENABLE_DEBUGINFOD_CLIENT
+ LLVM_WITH_CURL)
+endif()
if( LLVM_TARGETS_TO_BUILD STREQUAL "all" )
set( LLVM_TARGETS_TO_BUILD ${LLVM_ALL_TARGETS} )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111238.377569.patch
Type: text/x-patch
Size: 538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211006/103bbd32/attachment.bin>
More information about the llvm-commits
mailing list