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: #27736
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information
refack authored and targos committed May 28, 2019
1 parent 041b222 commit 08b0ca9
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 08b0ca9

Please sign in to comment.