[GITHUB] Add clang-cl location to the beginning of PATH instead of the end.

Fixes build with the latest VS2019 (16.8.2).
The new version now adds Llvm\x64\bin to the PATH of the
"x64_x86 Cross Tools Commannd Prompt", so we must override this to
get x86 clang.
This commit is contained in:
Thomas Faber 2020-11-22 12:25:56 +01:00
parent 9cc1a26b70
commit 99c02855a8
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -121,7 +121,7 @@ jobs:
run: |
mkdir build
cd build
$env:PATH = "$env:PATH;$env:VCToolsInstallDir\..\..\Llvm\bin"
$env:PATH = "$env:VCToolsInstallDir\..\..\Llvm\bin;$env:PATH"
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-msvc.cmake -DARCH:STRING=i386 -DENABLE_ROSTESTS=1 -DENABLE_ROSAPPS=1 -DUSE_CLANG_CL:BOOL=1 ${{github.workspace}}\src
- name: Build
working-directory: ${{github.workspace}}\build