Install mingw from chocolatey if necessary.
@@ -29,11 +29,11 @@ environment:
install:
- ps: choco install -y -r swig --version 3.0.9
- ps: choco install -y -r lua
+ - ps: if ($Env:COMPILER -eq "mingw-w64") choco install -y -r mingw
- ps: refreshenv
before_build:
- if "%COMPILER%"=="mingw" set PATH=C:\MinGW\bin;%PATH%
- - if "%COMPILER%"=="mingw-w64" set PATH=C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\bin;%PATH%
# sh.exe must not be in PATH when compiling with MinGW.
- if "%COMPILER%"=="mingw" rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe"
- if "%COMPILER%"=="mingw-w64" rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe"
