[lldb] [llvm] [llvm] Move libSupportHTTP to top-level libHTTP (NFC) (PR #191202)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 13:26:42 PDT 2026
================
@@ -1,26 +1,26 @@
-# 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()
-
-# Use WinHTTP on Windows
-if (WIN32)
- set(imported_libs ${imported_libs} winhttp.lib)
-endif()
-
-add_llvm_component_library(LLVMSupportHTTP
- HTTPClient.cpp
- HTTPServer.cpp
- StreamedHTTPResponseHandler.cpp
-
- LINK_LIBS
- ${imported_libs}
-
- LINK_COMPONENTS
- Support
-)
+# 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()
+
+# Use WinHTTP on Windows
+if (WIN32)
+ set(imported_libs ${imported_libs} winhttp.lib)
+endif()
+
+add_llvm_library(LLVMHTTP
----------------
nikic wrote:
Maybe add a comment here that explains that this is not a component library so the LLVM dylib does not gain a dependency on curl?
https://github.com/llvm/llvm-project/pull/191202
More information about the llvm-commits
mailing list