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 authored and Michaël Zasso committed 2019-05-28 07:33:32 +02:00
1 parent 041b2220be
commit 08b0ca9645
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.