diff options
author | Refael Ackermann <refack@gmail.com> | 2019-04-13 17:06:00 +0300 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-04-20 18:05:12 +0300 |
commit | 0fc27f6bc0a5ca8bc2a6458ee61b78906840ea7e (patch) | |
tree | 1b15c184452af60c27e210072c72ba1fe7bf7713 /vcbuild.bat | |
parent | 290faec0e75f3f71dc9f742b875375c3be53703f (diff) |
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 650218c2191..57824dca730 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. |