Skip to content

Commit

Permalink
build,win: create junction instead of symlink to out\%config%
Browse files Browse the repository at this point in the history
PR-URL: nodejs#27736
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information
refack committed May 25, 2019
1 parent eb32e38 commit a388f4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vcbuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a388f4d

Please sign in to comment.