Skip to content

Commit

Permalink
build: build addons in parallel on Windows
Browse files Browse the repository at this point in the history
Port nodejs#21155 to vcbuild.bat

PR-URL: nodejs#21403
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
bzoz authored and apapirovski committed Jun 25, 2018
1 parent 15c627f commit c403eeb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions vcbuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -448,13 +448,11 @@ for /d %%F in (test\addons\??_*) do (
"%node_exe%" tools\doc\addon-verify.js
if %errorlevel% neq 0 exit /b %errorlevel%
:: building addons
setlocal EnableDelayedExpansion
for /d %%F in (test\addons\*) do (
%node_gyp_exe% rebuild ^
--directory="%%F" ^
--nodedir="%cd%"
if !errorlevel! neq 0 exit /b !errorlevel!
)
setlocal
set npm_config_nodedir=%~dp0
"%node_exe%" "%~dp0tools\build-addons.js" "%~dp0deps\npm\node_modules\node-gyp\bin\node-gyp.js" "%~dp0test\addons"
if errorlevel 1 exit /b 1
endlocal

:build-addons-napi
if not defined build_addons_napi goto run-tests
Expand Down

0 comments on commit c403eeb

Please sign in to comment.