diff options
author | Refael Ackermann <refack@gmail.com> | 2019-05-16 21:00:04 +0300 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-05-25 21:41:17 +0300 |
commit | a388f4d13aa29ddbaefe4120ca554f5803bfac25 (patch) | |
tree | a4e6b5fb1b69f5aed853d492deeaefe7be3753af /vcbuild.bat | |
parent | eb32e383d89d5f0757129127d9983756b5202a12 (diff) |
build,win: create junction instead of symlink to `out\%config%`
PR-URL: https://github.com/nodejs/node/pull/27736
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'vcbuild.bat')
-rw-r--r-- | vcbuild.bat | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcbuild.bat b/vcbuild.bat index 807910d749c..4c844735586 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -328,8 +328,9 @@ 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 +:: Use /J because /D (symlink) requires special permissions. +if EXIST out\%config% mklink /J %config% out\%config% +if errorlevel 1 echo "Could not create junction to 'out\%config%'." & exit /B :sign @rem Skip signing unless the `sign` option was specified. |