Skip to content
Permalink
Browse files

build,win: create junction instead of symlink to `out\%config%`

PR-URL: #27736
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information...
refack committed May 16, 2019
1 parent eb32e38 commit a388f4d13aa29ddbaefe4120ca554f5803bfac25
Showing with 3 additions and 2 deletions.
  1. +3 −2 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.

0 comments on commit a388f4d

Please sign in to comment.
You can’t perform that action at this time.