Skip to content

Commit 041c779

Browse files
bzoztargos
authored andcommitted
win,build: build N-API addons in parallel
Ref: #21403 PR-URL: #22582 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 56f73a1 commit 041c779

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)