diff options
author | Bartosz Sosnowski <bartosz@janeasystems.com> | 2018-08-29 17:18:02 +0200 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2018-09-06 08:53:57 +0200 |
commit | fbf34d0ad3d0839a4ddde8754fe3374ae3536866 (patch) | |
tree | db96bc42b39760b8e4266e9ae9e34d9449c30aa9 /vcbuild.bat | |
parent | f0cec2313f7225bdbda7d76eee1f2480298366e6 (diff) | |
download | node-new-fbf34d0ad3d0839a4ddde8754fe3374ae3536866.tar.gz |
win,build: build N-API addons in parallel
Ref: https://github.com/nodejs/node/pull/21403
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'vcbuild.bat')
-rw-r--r-- | vcbuild.bat | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcbuild.bat b/vcbuild.bat index fd98867a12..fe0bd63fd5 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -497,11 +497,11 @@ for /d %%F in (test\addons-napi\??_*) do ( rd /s /q %%F ) :: building addons-napi -for /d %%F in (test\addons-napi\*) do ( - %node_gyp_exe% rebuild ^ - --directory="%%F" ^ - --nodedir="%cd%" -) +setlocal +set npm_config_nodedir=%~dp0 +"%node_exe%" "%~dp0tools\build-addons.js" "%~dp0deps\npm\node_modules\node-gyp\bin\node-gyp.js" "%~dp0test\addons-napi" +if errorlevel 1 exit /b 1 +endlocal endlocal goto run-tests |