diff --git a/vcbuild.bat b/vcbuild.bat index 0b7ea481..8545b263 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -41,7 +41,15 @@ shift goto next-arg :args-done +@rem Look for Visual Studio 2013 +if not defined VS120COMNTOOLS goto vc-set-2012 +if not exist "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" goto vc-set-2012 +call "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" %vs_toolset% +set GYP_MSVS_VERSION=2013 +goto select-target + @rem Look for Visual Studio 2012 +:vc-set-2012 if not defined VS110COMNTOOLS goto vc-set-2010 if not exist "%VS110COMNTOOLS%\..\..\vc\vcvarsall.bat" goto vc-set-2010 call "%VS110COMNTOOLS%\..\..\vc\vcvarsall.bat" %vs_toolset%