Skip to content

Commit 0fc27f6

Browse files
committed
build,win: bail vcbuild if mklink fails
PR-URL: #27216 Reviewed-By: Richard Lau <[email protected]>
1 parent 290faec commit 0fc27f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vcbuild.bat

+3
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,10 @@ if errorlevel 1 (
325325
if "%target%" == "Clean" goto exit
326326

327327
:after-build
328+
rd %config%
329+
if errorlevel 1 echo "Old build output exists at 'out\%config%'. Please remove." & exit /B
328330
if EXIST out\%config% mklink /D %config% out\%config%
331+
if errorlevel 1 exit /B
329332

330333
:sign
331334
@rem Skip signing unless the `sign` option was specified.

0 commit comments

Comments
 (0)