diff options
author | Lev Gimelfarb <lev.gimelfarb@gmail.com> | 2013-12-27 14:39:55 -0500 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-12-28 16:58:01 +0400 |
commit | d2d56d04f87b1ab0d45bb25da588781ca11cb91f (patch) | |
tree | 987ba0bb65ae4ada055b488b435e4b07e58a6d29 | |
parent | 7f82faee307de546a91c647086a0bb0c36de3132 (diff) | |
download | node-d2d56d04f87b1ab0d45bb25da588781ca11cb91f.tar.gz |
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.
-rw-r--r-- | vcbuild.bat | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vcbuild.bat b/vcbuild.bat index dc596067b..849374b59 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 |