build,win: bail vcbuild if mklink fails · nodejs/node@0fc27f6 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Commit 0fc27f6

build,win: bail vcbuild if mklink fails

PR-URL: #27216Reviewed-By: Richard Lau riclau@uk.ibm.com

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -325,7 +325,10 @@ if errorlevel 1 (
325 325 if "%target%" == "Clean" goto exit
326 326
327 327 :after-build
328 +rd %config%
329 +if errorlevel 1 echo "Old build output exists at 'out\%config%'. Please remove." & exit /B
328 330 if EXIST out\%config% mklink /D %config% out\%config%
331 +if errorlevel 1 exit /B
329 332
330 333 :sign
331 334 @rem Skip signing unless the `sign` option was specified.