Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
lua-appveyor-example/.appveyor/set_compiler_env.bat
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
40 lines (28 sloc)
993 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| :: Now we declare a scope | |
| Setlocal EnableDelayedExpansion EnableExtensions | |
| if not defined Configuration set Configuration=2015 | |
| if "%Configuration%"=="MinGW" ( goto :mingw ) | |
| set arch=x86 | |
| if "%platform%" EQU "x64" ( set arch=x86_amd64 ) | |
| if "%Configuration%"=="2015" ( | |
| set SET_VS_ENV="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" | |
| ) | |
| if "%Configuration%"=="2013" ( | |
| set SET_VS_ENV="C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" | |
| ) | |
| if "%Configuration%"=="2012" ( | |
| set SET_VS_ENV="C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" | |
| ) | |
| if "%Configuration%"=="2010" ( | |
| set SET_VS_ENV="C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" | |
| ) | |
| if "%Configuration%"=="2008" ( | |
| set SET_VS_ENV="C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" | |
| ) | |
| :: Visual Studio detected | |
| endlocal & call %SET_VS_ENV% %arch% | |
| goto :eof | |
| :: MinGW detected | |
| :mingw | |
| endlocal & set PATH=c:\mingw\bin;%PATH% |