Skip to content

Commit 0e97a3e

Browse files
joaocgreisMyles Borins
authored andcommitted
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: #5627
1 parent 3168e6b commit 0e97a3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vcbuild.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ echo Project files generated.
178178
if defined nobuild goto sign
179179

180180
@rem Build the sln with msbuild.
181-
msbuild node.sln /m /t:%target% /p:Configuration=%config% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
181+
set "msbplatform=Win32"
182+
if "%target_arch%"=="x64" set "msbplatform=x64"
183+
msbuild node.sln /m /t:%target% /p:Configuration=%config% /p:Platform=%msbplatform% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
182184
if errorlevel 1 goto exit
183185
if "%target%" == "Clean" goto exit
184186

0 commit comments

Comments
 (0)