diff --git a/vcbuild.bat b/vcbuild.bat index 650218c21910fd..57824dca730dc0 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -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.