From: João Reis Date: Wed, 9 Mar 2016 11:58:06 +0000 (+0000) Subject: win,build: support Visual C++ Build Tools 2015 X-Git-Tag: v4.4.1~102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e97a3ea517869d09876e3d3c6c08ab1dd4fe3e6;p=platform%2Fupstream%2Fnodejs.git 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 --- diff --git a/vcbuild.bat b/vcbuild.bat index b515af8..ad246c6 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -178,7 +178,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