[PATCH] D143351: [bazel] Remove unused dependency on libxml2
Aaron Siddhartha Mondal via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 5 14:58:32 PST 2023
aaronmondal created this revision.
aaronmondal added reviewers: MaskRay, chapuni, rupprecht, GMNGeoffrey, csigg.
aaronmondal added a project: bazel build.
Herald added a project: All.
aaronmondal requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The Bazel configs don't set `LLVM_ENABLE_LIBXML2`, so this was never usable to
begin with.
On systems without static `libxml2.a` this made `lld` runtime-dependent on an
unused, non-hermetic `libxml2.so`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D143351
Files:
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
Index: utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -2733,11 +2733,6 @@
"include/llvm/WindowsManifest/*.h",
]),
copts = llvm_copts,
- linkopts = [
- # Libxml2 is required to process Windows manifests. Without this,
- # lld uses Microsoft mt.exe instead, which is not cross-platform.
- "-lxml2",
- ],
deps = [
":Support",
":config",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143351.494950.patch
Type: text/x-patch
Size: 585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230205/a4389c3c/attachment.bin>
More information about the llvm-commits
mailing list