summaryrefslogtreecommitdiff
path: root/vcbuild.bat
diff options
context:
space:
mode:
authorRefael Ackermann <refack@gmail.com>2019-04-13 10:06:00 -0400
committerRefael Ackermann <refack@gmail.com>2019-04-20 11:05:12 -0400
commit0fc27f6bc0a5ca8bc2a6458ee61b78906840ea7e (patch)
tree1b15c184452af60c27e210072c72ba1fe7bf7713 /vcbuild.bat
parent290faec0e75f3f71dc9f742b875375c3be53703f (diff)
downloadandroid-node-v8-0fc27f6bc0a5ca8bc2a6458ee61b78906840ea7e.tar.gz
android-node-v8-0fc27f6bc0a5ca8bc2a6458ee61b78906840ea7e.tar.bz2
android-node-v8-0fc27f6bc0a5ca8bc2a6458ee61b78906840ea7e.zip
build,win: bail vcbuild if mklink fails
PR-URL: https://github.com/nodejs/node/pull/27216 Reviewed-By: Richard Lau <riclau@uk.ibm.com>
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.