Skip to content

Commit 4208dc4

Browse files
committed
build: add MSVS 2015 support
PR-URL: #2036 Reviewed-By: Alexis Campailla <alexis@janeasystems.com>
1 parent c0c0d73 commit 4208dc4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vcbuild.bat

+12
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,18 @@ if defined NIGHTLY set TAG=nightly-%NIGHTLY%
8888

8989
@rem Set environment for msbuild
9090

91+
@rem Look for Visual Studio 2015
92+
if not defined VS140COMNTOOLS goto vc-set-2013
93+
if not exist "%VS140COMNTOOLS%\..\..\vc\vcvarsall.bat" goto vc-set-2013
94+
if "%VCVARS_VER%" NEQ "140" (
95+
call "%VS140COMNTOOLS%\..\..\vc\vcvarsall.bat"
96+
SET VCVARS_VER=140
97+
)
98+
if not defined VCINSTALLDIR goto vc-set-2013
99+
set GYP_MSVS_VERSION=2015
100+
goto msbuild-found
101+
102+
:vc-set-2013
91103
@rem Look for Visual Studio 2013
92104
if not defined VS120COMNTOOLS goto msbuild-not-found
93105
if not exist "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" goto msbuild-not-found

0 commit comments

Comments
 (0)