[llvm] [docker][Windows] install libxml2 using vcpkg (PR #209422)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 14 02:56:58 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-github-workflow

Author: Charles Zablit (charles-zablit)

<details>
<summary>Changes</summary>

Since https://github.com/llvm/llvm-project/pull/209258, lldb uses `lldb-server.exe` by default if libxml2 is available at build time. This means that lldb-server requires installing libxml2 in the CI environments to test it.

This patch adds a step to install libxml2 in the docker container used for lldb pre-merge testing on Windows.

---
Full diff: https://github.com/llvm/llvm-project/pull/209422.diff


1 Files Affected:

- (modified) .github/workflows/containers/github-action-ci-windows/Dockerfile (+5) 


``````````diff
diff --git a/.github/workflows/containers/github-action-ci-windows/Dockerfile b/.github/workflows/containers/github-action-ci-windows/Dockerfile
index a6d3fd195e731..10cae1a98e48f 100644
--- a/.github/workflows/containers/github-action-ci-windows/Dockerfile
+++ b/.github/workflows/containers/github-action-ci-windows/Dockerfile
@@ -48,6 +48,11 @@ RUN choco install -y ninja --version 1.13.1 && \
     choco install -y python3 --version 3.12.3 && \
     choco install -y make --version 4.4.1
 
+# Install libxml2 using vcpkg.
+RUN git clone --depth 1 --branch 2026.06.24 https://github.com/microsoft/vcpkg.git C:\vcpkg && \
+    C:\vcpkg\bootstrap-vcpkg.bat -disableMetrics && \
+    C:\vcpkg\vcpkg.exe install libxml2:x64-windows
+
 # Testing requires psutil
 RUN pip install psutil
 

``````````

</details>


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


More information about the llvm-commits mailing list