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>
This commit is contained in:
Refael Ackermann committed 2019-05-25 14:41:17 -04:00
1 parent eb32e383d8
commit a388f4d13a
1 file changed
+3 -2
+3 -2
View File
@@ -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.