Skip to content

Commit fbf34d0

Browse files
bzoztargos
authored andcommitted
win,build: build N-API addons in parallel
Ref: #21403 PR-URL: #22582 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent f0cec23 commit fbf34d0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

vcbuild.bat

+5-5
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,11 @@ for /d %%F in (test\addons-napi\??_*) do (
497497
rd /s /q %%F
498498
)
499499
:: building addons-napi
500-
for /d %%F in (test\addons-napi\*) do (
501-
%node_gyp_exe% rebuild ^
502-
--directory="%%F" ^
503-
--nodedir="%cd%"
504-
)
500+
setlocal
501+
set npm_config_nodedir=%~dp0
502+
"%node_exe%" "%~dp0tools\build-addons.js" "%~dp0deps\npm\node_modules\node-gyp\bin\node-gyp.js" "%~dp0test\addons-napi"
503+
if errorlevel 1 exit /b 1
504+
endlocal
505505
endlocal
506506
goto run-tests
507507

0 commit comments

Comments
 (0)