summaryrefslogtreecommitdiff
path: root/vcbuild.bat
diff options
context:
space:
mode:
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcbuild.bat b/vcbuild.bat
index 650218c219..57824dca73 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.