summaryrefslogtreecommitdiff
path: root/vcbuild.bat
diff options
context:
space:
mode:
authorJoão Reis <reis@janeasystems.com>2016-03-09 11:58:06 +0000
committerJoão Reis <reis@janeasystems.com>2016-03-11 11:16:17 +0000
commita6935574dac90b1b78fcb7f4cd7a68b4b20a084d (patch)
treec24def1181d135b1dac288be06cdc8c3fe865665 /vcbuild.bat
parent31a8708caaee62dc186a78827b0983b97513f728 (diff)
downloadnode-new-a6935574dac90b1b78fcb7f4cd7a68b4b20a084d.tar.gz
win,build: support Visual C++ Build Tools 2015
Invoke MSBuild specifying the target platform as generated by Gyp. Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/5627
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcbuild.bat b/vcbuild.bat
index 39f7ac6e64..d5612979e3 100644
--- a/vcbuild.bat
+++ b/vcbuild.bat
@@ -187,7 +187,9 @@ echo Project files generated.
if defined nobuild goto sign
@rem Build the sln with msbuild.
-msbuild node.sln /m /t:%target% /p:Configuration=%config% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
+set "msbplatform=Win32"
+if "%target_arch%"=="x64" set "msbplatform=x64"
+msbuild node.sln /m /t:%target% /p:Configuration=%config% /p:Platform=%msbplatform% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
if errorlevel 1 goto exit
if "%target%" == "Clean" goto exit