chore(azure-pipelines): Ensure build is with LLVM
This commit is contained in:
parent
a113832342
commit
e5d3a40d82
2 changed files with 4 additions and 3 deletions
|
|
@ -23,6 +23,7 @@ jobs:
|
|||
displayName: Setup
|
||||
- script: |
|
||||
. ~/.nix-profile/etc/profile.d/nix.sh
|
||||
export CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
|
||||
nix-shell --run ./script/ci.sh
|
||||
displayName: Build
|
||||
- task: PublishTestResults@2
|
||||
|
|
@ -39,12 +40,12 @@ jobs:
|
|||
steps:
|
||||
- script: |
|
||||
choco install -y msys2
|
||||
C:\tools\msys64\usr\bin\bash -lc "pacman --noconfirm -S make python mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc mingw-w64-x86_64-clang mingw-w64-x86_64-polly git diffutils"
|
||||
C:\tools\msys64\usr\bin\bash -lc "pacman --noconfirm -S make python mingw-w64-x86_64-cmake mingw-w64-x86_64-clang mingw-w64-x86_64-polly git diffutils"
|
||||
displayName: Setup
|
||||
- script: |
|
||||
C:\tools\msys64\usr\bin\bash -l ./script/ci.sh
|
||||
env:
|
||||
CMAKE_OPTIONS: -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles"
|
||||
CMAKE_OPTIONS: -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
|
||||
# use mingw64 shell
|
||||
MSYSTEM: MINGW64
|
||||
# don't let bash reset cwd
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
set -e
|
||||
mkdir build
|
||||
cd build
|
||||
eval cmake ../src -DLLVM=ON $CMAKE_OPTIONS
|
||||
eval cmake ../src $CMAKE_OPTIONS
|
||||
cmake --build .
|
||||
# -T to create .xml file
|
||||
ctest -j8 --output-on-failure --no-compress-output -T Test
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue