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