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:
|
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"
|
||||||
|
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"
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user