Browse Source

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>
v0.10
João Reis 10 years ago
parent
commit
6ac47aa9f5
  1. 6
      vcbuild.bat

6
vcbuild.bat

@ -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

Loading…
Cancel
Save