Add clang-cl configurations

This commit is contained in:
Roelf-Jilling 2018-11-13 19:17:55 +01:00
parent 9f3492064b
commit 7347fc5afa

View File

@ -15,12 +15,20 @@ image:
environment: environment:
matrix: matrix:
- GSL_CXX_STANDARD: 14 - GSL_CXX_STANDARD: 14
USE_COMPILER: MSVC
- GSL_CXX_STANDARD: 14
USE_COMPILER: MSVC
- GSL_CXX_STANDARD: 17 - GSL_CXX_STANDARD: 17
USE_COMPILER: clang-cl
- GSL_CXX_STANDARD: 17
USE_COMPILER: clang-cl
matrix: matrix:
exclude: exclude:
- image: Visual Studio 2015 - image: Visual Studio 2015
GSL_CXX_STANDARD: 17 GSL_CXX_STANDARD: 17
- image: Visual Studio 2015
USE_COMPILER: clang-cl
cache: cache:
- C:\cmake-3.8.0-win32-x86 - C:\cmake-3.8.0-win32-x86
@ -47,7 +55,12 @@ before_build:
$env:generator="$env:generator Win64" $env:generator="$env:generator Win64"
} }
echo generator="$env:generator" echo generator="$env:generator"
cmake .. -G "$env:generator" -DGSL_CXX_STANDARD="$env:GSL_CXX_STANDARD" if ("$env:USE_COMPILER=" -match "clang_cl") {
cmake .. -G "$env:generator" -T LLVM -DGSL_CXX_STANDARD="$env:GSL_CXX_STANDARD"
}
else {
cmake .. -G "$env:generator" -DGSL_CXX_STANDARD="$env:GSL_CXX_STANDARD"
}
build_script: build_script:
- cmake --build . --config %CONFIGURATION% -- /m /v:minimal - cmake --build . --config %CONFIGURATION% -- /m /v:minimal