mirror of
https://github.com/microsoft/GSL.git
synced 2025-01-19 02:04:59 -05:00
Add clang-cl configurations
This commit is contained in:
parent
9f3492064b
commit
7347fc5afa
13
appveyor.yml
13
appveyor.yml
@ -15,12 +15,20 @@ image:
|
||||
environment:
|
||||
matrix:
|
||||
- GSL_CXX_STANDARD: 14
|
||||
USE_COMPILER: MSVC
|
||||
- GSL_CXX_STANDARD: 14
|
||||
USE_COMPILER: MSVC
|
||||
- GSL_CXX_STANDARD: 17
|
||||
USE_COMPILER: clang-cl
|
||||
- GSL_CXX_STANDARD: 17
|
||||
USE_COMPILER: clang-cl
|
||||
|
||||
matrix:
|
||||
exclude:
|
||||
- image: Visual Studio 2015
|
||||
GSL_CXX_STANDARD: 17
|
||||
- image: Visual Studio 2015
|
||||
USE_COMPILER: clang-cl
|
||||
|
||||
cache:
|
||||
- C:\cmake-3.8.0-win32-x86
|
||||
@ -47,7 +55,12 @@ before_build:
|
||||
$env:generator="$env:generator Win64"
|
||||
}
|
||||
echo generator="$env:generator"
|
||||
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:
|
||||
- cmake --build . --config %CONFIGURATION% -- /m /v:minimal
|
||||
|
Loading…
Reference in New Issue
Block a user