aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2021-01-26 03:36:44 -0500
committerJack Lloyd <[email protected]>2021-01-26 03:36:44 -0500
commit2a3731c912ae6cc2d2c5be6188d15a3002ee2095 (patch)
tree7e3103d0f2ab6c7cfcf3c71b8059f735081f8b34 /src/scripts
parent5909344a3d8a1270f155fcfe4a302e6c76de15ae (diff)
Use an if/else in the batch script
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/ci/setup_appveyor.bat7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/scripts/ci/setup_appveyor.bat b/src/scripts/ci/setup_appveyor.bat
index df904f4e3..f30ccd8a6 100644
--- a/src/scripts/ci/setup_appveyor.bat
+++ b/src/scripts/ci/setup_appveyor.bat
@@ -6,8 +6,11 @@ if %CC% == VC2019p call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Previe
if %CC% == MinGW set PATH=%PATH%;C:\msys64\mingw64\bin
rem check compiler version
-if %CC% == MinGW g++ -v
-if not %CC% == MinGW cl
+if %CC% == MinGW (
+ g++ -v
+) else (
+ cl
+)
appveyor DownloadFile https://github.com/mozilla/sccache/releases/download/%SCCACHE_VERSION%/sccache-%SCCACHE_VERSION%-x86_64-pc-windows-msvc.tar.gz
tar -xf sccache-%SCCACHE_VERSION%-x86_64-pc-windows-msvc.tar.gz