From 3d9cf0b62ad5dde4bd71fa79d6d6234a43f33c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Reis?= Date: Wed, 9 Mar 2016 11:58:06 +0000 Subject: [PATCH] win,build: support Visual C++ Build Tools 2015 Invoke MSBuild specifying the target platform as generated by Gyp. Reviewed-By: James M Snell PR-URL: https://github.com/nodejs/node/pull/5627 --- vcbuild.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vcbuild.bat b/vcbuild.bat index 983bb9f5356d..07be31d884ef 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -222,7 +222,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 :sign