build,win: bail vcbuild if mklink fails

PR-URL: https://github.com/nodejs/node/pull/27216
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
Refael Ackermann 2019-04-13 10:06:00 -04:00
parent 290faec0e7
commit 0fc27f6bc0

View File

@ -325,7 +325,10 @@ if errorlevel 1 (
if "%target%" == "Clean" goto exit
:after-build
rd %config%
if errorlevel 1 echo "Old build output exists at 'out\%config%'. Please remove." & exit /B
if EXIST out\%config% mklink /D %config% out\%config%
if errorlevel 1 exit /B
:sign
@rem Skip signing unless the `sign` option was specified.