From f3f45bc95b88f4c9a471862b8e0e48931eb1b82f Mon Sep 17 00:00:00 2001 From: Daniel Collins Date: Mon, 5 Aug 2024 19:12:12 +0100 Subject: [PATCH] Fix 32-bit clang-cl CI(?) --- src/scripts/ci/setup_gh_actions.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/scripts/ci/setup_gh_actions.ps1 b/src/scripts/ci/setup_gh_actions.ps1 index 1fd505b08f6..53736bd1594 100644 --- a/src/scripts/ci/setup_gh_actions.ps1 +++ b/src/scripts/ci/setup_gh_actions.ps1 @@ -33,3 +33,8 @@ if($identifiers_for_64bit -contains $ARCH ) { } echo "SCCACHE_CACHE_SIZE=200M" >> $env:GITHUB_ENV + +# Remove standalone LLVM (and clang-cl) from PATH - we want to use the one shipped with VS. +# https://github.com/actions/runner-images/issues/10001#issuecomment-2150541007 +$no_llvm_path = ($env:PATH -split ';' | Where-Object { $_ -ne 'C:\Program Files\LLVM\bin' }) -join ';' +echo "PATH=$no_llvm_path" >> $env:GITHUB_ENV