From 8ca83612fe5b6f106d71aabb5ed4ffbe0740b75b Mon Sep 17 00:00:00 2001 From: Gennaro Prota Date: Mon, 23 Nov 2026 12:12:33 +0100 Subject: [PATCH] Use the clang-cl of Visual Studio 2026 in the clang-win CI job The windows-2025-vs2026 image now has MSVC 14.52, whose standard library refuses Clang versions older than 22, but b2 finds the standalone LLVM 20.1.8 of the image first. So every compilation in the clang-win job failed, including the configuration checks, and b2 skipped most of the tests without reporting them. We now put the clang-cl which comes with Visual Studio first in the `PATH` of that job, as Microsoft ships it together with the standard library it is meant for, and run the job on windows-2025-vs2026 explicitly, which is where it was already running. --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c02922ce..6f901e553 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -267,7 +267,7 @@ jobs: - toolset: clang-win cxxstd: "14,17,20,latest" addrmd: 32,64 - os: windows-2025 + os: windows-2025-vs2026 - toolset: gcc cxxstd: "11,14,17,2a" addrmd: 64 @@ -300,6 +300,17 @@ jobs: cmd /c bootstrap b2 -d0 headers + - name: Use the clang-cl of Visual Studio + if: matrix.toolset == 'clang-win' + shell: pwsh + run: | + # The standalone LLVM of the image may be older than the Clang + # which the MSVC standard library requires. + $vs = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath + $bin = Join-Path $vs 'VC\Tools\Llvm\x64\bin' + & "$bin\clang-cl.exe" --version + Add-Content $env:GITHUB_PATH $bin + - name: Run tests shell: cmd run: |