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 committed 2019-04-20 11:05:12 -04:00
1 parent 290faec0e7
commit 0fc27f6bc0
1 file changed
+3
+3
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.