build,win: try next MSVS version on failure

This is a port of e07c86e240 from v0.12.

Original commit message:

  Try the next version of Microsoft Visual Studio when vcvarsall.bat
  fails to set VCINSTALLDIR.

  PR-URL: https://github.com/nodejs/node/pull/2843
  Reviewed-By: rvagg - Rod Vagg <rod@vagg.org>
  Reviewed-By: orangemocha - Alexis Campailla <orangemocha@nodejs.org>
  Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>

PR-URL: https://github.com/nodejs/node/pull/2910
Reviewed-By: orangemocha - Alexis Campailla <orangemocha@nodejs.org>
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
João Reis committed 2015-09-17 10:16:22 +01:00
1 parent c88a0b26da
commit 6ac47aa9f5
1 file changed
+3 -3
+3 -3
View File
@@ -97,7 +97,7 @@ if defined msi (
)
)
call "%VS140COMNTOOLS%\..\..\vc\vcvarsall.bat"
if not defined VCINSTALLDIR goto msbuild-not-found
if not defined VCINSTALLDIR goto vc-set-2013
set GYP_MSVS_VERSION=2015
set PLATFORM_TOOLSET=v140
goto msbuild-found
@@ -117,7 +117,7 @@ if defined msi (
)
)
call "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat"
if not defined VCINSTALLDIR goto msbuild-not-found
if not defined VCINSTALLDIR goto vc-set-2012
set GYP_MSVS_VERSION=2013
set PLATFORM_TOOLSET=v120
goto msbuild-found
@@ -136,7 +136,7 @@ if defined msi (
)
)
call "%VS110COMNTOOLS%\..\..\vc\vcvarsall.bat"
if not defined VCINSTALLDIR goto msbuild-not-found
if not defined VCINSTALLDIR goto vc-set-2010
set GYP_MSVS_VERSION=2012
set PLATFORM_TOOLSET=v110
goto msbuild-found