From d2d56d04f87b1ab0d45bb25da588781ca11cb91f Mon Sep 17 00:00:00 2001 From: Lev Gimelfarb Date: Fri, 27 Dec 2013 14:39:55 -0500 Subject: [PATCH] build: add settings for VS 2013 to vcbuild.bat Search for VS2013 compiler 1st, before falling back to older ones. This allows compiling using the latest VS2013. --- vcbuild.bat | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vcbuild.bat b/vcbuild.bat index dc59606..849374b 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -99,6 +99,15 @@ ENDLOCAL @rem Skip project generation if requested. if defined nobuild goto sign +@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" +if not defined VCINSTALLDIR goto msbuild-not-found +set GYP_MSVS_VERSION=2013 +goto msbuild-found + +:vc-set-2012 @rem Look for Visual Studio 2012 if not defined VS110COMNTOOLS goto vc-set-2010 if not exist "%VS110COMNTOOLS%\..\..\vc\vcvarsall.bat" goto vc-set-2010 -- 2.7.4