From 7347fc5afa9a876b262356acf973bac752b5896d Mon Sep 17 00:00:00 2001 From: Roelf-Jilling Date: Tue, 13 Nov 2018 19:17:55 +0100 Subject: [PATCH] Add clang-cl configurations --- appveyor.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 2fc8a16..a524971 100644 --- a/appveyor.yml +++ b/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" - 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: - cmake --build . --config %CONFIGURATION% -- /m /v:minimal