[llvm] [Bazel] Remove WinHTTP from LLVMSupport link options (PR #218182)

Corentin Kerisit via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 22 20:08:44 PDT 2026


https://github.com/cerisier created https://github.com/llvm/llvm-project/pull/218182

LLVMSupport has no WinHTTP API references and CMake does not link it with WinHTTP. The Windows implementation is owned by LLVMHTTP, whose Bazel target already links winhttp and crypt32. Remove winhttp only from Support so ordinary Windows LLVM binaries no longer receive the dependency transitively while HTTP consumers retain the libraries they require.

>From 34997b6bf489d21ccf7bb9ccf6353896f1d5173a Mon Sep 17 00:00:00 2001
From: Corentin Kerisit <corentin.kerisit at gmail.com>
Date: Sun, 23 Aug 2026 01:37:35 +0900
Subject: [PATCH] [Bazel] Remove WinHTTP from Support link options

---
 utils/bazel/llvm-project-overlay/llvm/BUILD.bazel | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index 31eb5b3b0e2f5..f0ea23eb4ed61 100644
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -468,7 +468,6 @@ cc_library(
             "-luuid",
             "-lws2_32",
             "-lntdll",
-            "-lwinhttp",
         ],
         ":is_windows_clang_cl": [
             "/STACK:10000000",
@@ -476,7 +475,6 @@ cc_library(
             "uuid.lib",
             "ws2_32.lib",
             "ntdll.lib",
-            "winhttp.lib",
         ],
         ":is_windows_msvc": [
             "/STACK:10000000",
@@ -484,7 +482,6 @@ cc_library(
             "uuid.lib",
             "ws2_32.lib",
             "ntdll.lib",
-            "winhttp.lib",
         ],
         "@platforms//os:freebsd": [
             "-pthread",



More information about the llvm-commits mailing list