summaryrefslogtreecommitdiff
path: root/deps/uv/vcbuild.bat
diff options
context:
space:
mode:
Diffstat (limited to 'deps/uv/vcbuild.bat')
-rw-r--r--deps/uv/vcbuild.bat8
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/uv/vcbuild.bat b/deps/uv/vcbuild.bat
index 084ab9578f..696f0db30e 100644
--- a/deps/uv/vcbuild.bat
+++ b/deps/uv/vcbuild.bat
@@ -44,6 +44,14 @@ goto next-arg
if defined WindowsSDKDir goto select-target
if defined VCINSTALLDIR goto select-target
+@rem Look for Visual Studio 2015
+if not defined VS140COMNTOOLS goto vc-set-2013
+if not exist "%VS140COMNTOOLS%\..\..\vc\vcvarsall.bat" goto vc-set-2013
+call "%VS140COMNTOOLS%\..\..\vc\vcvarsall.bat" %vs_toolset%
+set GYP_MSVS_VERSION=2015
+goto select-target
+
+:vc-set-2013
@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