Skip to content

Commit

Permalink
fix MSVC env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Mar 7, 2018
1 parent 86ca612 commit d789b17
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/appveyor-setup.bat
Expand Up @@ -13,6 +13,18 @@ conda config --add channels https://repo.continuum.io/pkgs/free
conda config --add channels conda-forge
conda info -a

if "%GENERATOR%"=="NMake Makefiles" set need_vcvarsall=1
if "%GENERATOR%"=="Ninja" set need_vcvarsall=1

if defined need_vcvarsall (
@rem Select desired compiler version
if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" (
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
) else (
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
)
)

@rem Use clcache for faster builds
pip install -q git+https://github.com/frerich/clcache.git
clcache -s
Expand Down

0 comments on commit d789b17

Please sign in to comment.