[Lldb-commits] [lldb] [llvm] Reland "[Support] Move HTTP client/server to new LLVMSupportHTTP lib (NFC)" (PR #185410)

Petr Hosek via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 11 09:27:41 PDT 2026


Stefan =?utf-8?q?Gränitz?= <stefan.graenitz at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/185410 at github.com>


================
@@ -0,0 +1,20 @@
+# Link LibCURL if the user wants it
+if (LLVM_ENABLE_CURL)
+  set(imported_libs CURL::libcurl)
+endif()
+
+# Link cpp-httplib if the user wants it
+if (LLVM_ENABLE_HTTPLIB)
+  set(imported_libs ${imported_libs} httplib::httplib)
+endif()
+
+add_llvm_library(LLVMSupportHTTP
+  HTTPClient.cpp
+  HTTPServer.cpp
+
+  LINK_LIBS
+  ${imported_libs}
+
+  LINK_COMPONENTS
+  Support
+)
----------------
petrhosek wrote:

Actually after looking at other cases in LLVM where we have client and server such as GRPC in Clangd, there seems to be a precedent for combining these in a single target, so I'm fine going forward with this change as is.

https://github.com/llvm/llvm-project/pull/185410


More information about the lldb-commits mailing list