[PATCH] D155323: [CMake] Don't exclude llvm-debuginfod if httplib isn't available

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 14 11:43:00 PDT 2023


phosek created this revision.
phosek added reviewers: mysterymath, haowei.
Herald added a subscriber: ekilmer.
Herald added a project: All.
phosek requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This will result in a tool that's not usable, but it'll still link
correctly rather than failing with a CMake error. This matches what
we do for other tools that have dependencies such as llvm-mt.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155323

Files:
  llvm/tools/CMakeLists.txt


Index: llvm/tools/CMakeLists.txt
===================================================================
--- llvm/tools/CMakeLists.txt
+++ llvm/tools/CMakeLists.txt
@@ -21,10 +21,6 @@
   set(LLVM_TOOL_LTO_BUILD Off)
 endif()
 
-if(NOT LLVM_ENABLE_HTTPLIB)
-  set(LLVM_TOOL_LLVM_DEBUGINFOD_BUILD Off)
-endif()
-
 if (LLVM_TOOL_LLVM_DRIVER_BUILD)
   add_llvm_tool(llvm-driver)
 endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155323.540518.patch
Type: text/x-patch
Size: 380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230714/06def2d6/attachment.bin>


More information about the llvm-commits mailing list