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:
parent
eb32e383d8
commit
a388f4d13a
@ -328,8 +328,9 @@ if "%target%" == "Clean" goto exit
|
|||||||
:after-build
|
:after-build
|
||||||
rd %config%
|
rd %config%
|
||||||
if errorlevel 1 echo "Old build output exists at 'out\%config%'. Please remove." & exit /B
|
if errorlevel 1 echo "Old build output exists at 'out\%config%'. Please remove." & exit /B
|
||||||
if EXIST out\%config% mklink /D %config% out\%config%
|
:: Use /J because /D (symlink) requires special permissions.
|
||||||
if errorlevel 1 exit /B
|
if EXIST out\%config% mklink /J %config% out\%config%
|
||||||
|
if errorlevel 1 echo "Could not create junction to 'out\%config%'." & exit /B
|
||||||
|
|
||||||
:sign
|
:sign
|
||||||
@rem Skip signing unless the `sign` option was specified.
|
@rem Skip signing unless the `sign` option was specified.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user