Skip to content

Commit

Permalink
FEAT: reversed lookup order in the vcbuild so the latest version of V…
Browse files Browse the repository at this point in the history
…S is used if found.
  • Loading branch information
Oldes committed Jul 14, 2014
1 parent 31899ae commit f228be5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions make/vcbuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@ IF /I "%1" == "vc12" GOTO TRY_VS12
IF /I "%1" == "vc10" GOTO TRY_VS10
IF /I "%1" == "vc9" GOTO TRY_VS9

REM vs9 is VS 2008
:TRY_VS9
CALL "%VS90COMNTOOLS%\vsvars32.bat" 2>NUL
REM vs12 is VS 2012
:TRY_VS12
CALL "%VS120COMNTOOLS%\vsvars32.bat" 2>NUL
IF NOT ERRORLEVEL 1 GOTO BUILD

REM vs10 is VS 2010
:TRY_VS10
CALL "%VS100COMNTOOLS%\vsvars32.bat" 2>NUL
IF NOT ERRORLEVEL 1 GOTO BUILD

REM vs12 is VS 2012
:TRY_VS12
CALL "%VS120COMNTOOLS%\vsvars32.bat" 2>NUL
REM vs9 is VS 2008
:TRY_VS9
CALL "%VS90COMNTOOLS%\vsvars32.bat" 2>NUL
IF NOT ERRORLEVEL 1 GOTO BUILD


ECHO Visual Studio 2012, 2010, or 2008 doesn't seem to be installed
EXIT /B 1

Expand Down

0 comments on commit f228be5

Please sign in to comment.