diff options
author | Refael Ackermann <refack@gmail.com> | 2019-04-13 10:06:00 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-04-20 11:05:12 -0400 |
commit | 0fc27f6bc0a5ca8bc2a6458ee61b78906840ea7e (patch) | |
tree | 1b15c184452af60c27e210072c72ba1fe7bf7713 /vcbuild.bat | |
parent | 290faec0e75f3f71dc9f742b875375c3be53703f (diff) | |
download | node-new-0fc27f6bc0a5ca8bc2a6458ee61b78906840ea7e.tar.gz |
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.bat | 3 |
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. |