aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/quick-test.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/quick-test.yml b/.github/workflows/quick-test.yml
index c3a44b4f..6b527a90 100644
--- a/.github/workflows/quick-test.yml
+++ b/.github/workflows/quick-test.yml
@@ -194,6 +194,16 @@ jobs:
arch: -A x64
steps:
- uses: actions/checkout@v7
+ - name: Use Visual Studio's bundled LLVM
+ # The standalone LLVM preinstalled in C:\Program Files\LLVM can lag behind the minimum Clang
+ # version required by the MSVC STL, so point Bazel's clang-cl toolchain at the LLVM that
+ # ships with Visual Studio instead.
+ run: |
+ $vs = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -property installationPath
+ $llvm = "$vs\VC\Tools\Llvm\x64"
+ if (-not (Test-Path "$llvm\bin\clang-cl.exe")) { throw "clang-cl not found in $llvm" }
+ & "$llvm\bin\clang-cl.exe" --version
+ echo "BAZEL_LLVM=$llvm" >> $env:GITHUB_ENV
- name: test
run: |
cd c++ && bazel test --config=ci //...