File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ goto next-arg
127127
128128:environment-validate
129129REM Make sure we can find python
130- call :run-python --version > NUL
130+ call :run-python --version > NUL 2 >& 1
131131if errorlevel 1 (
132132 echo Could not find python2. More information can be found at
133133 echo https://github.com/nodejs/node/blob/master/BUILDING.md#windows-1
@@ -176,12 +176,14 @@ if "%i18n_arg%"=="without-intl" set configure_flags=%configure_flags% --without-
176176
177177if defined config_flags set configure_flags = %configure_flags% %config_flags%
178178
179+ if not " %target% " == " Clean" goto no-clean
179180if not exist " %~dp0 deps\icu" goto no-depsicu
180181if " %target% " == " Clean" echo deleting %~dp0 deps\icu
181182if " %target% " == " Clean" rmdir /S /Q %~dp0 deps\icu
182183:no-depsicu
183184
184- if " %target% " == " Clean" rmdir /Q /S " %~dp0 %config% \node-v%FULLVERSION% -win-%target_arch% " > nul 2 > nul
185+ for /d %%I IN (" %~dp0 %config% \node-v*" ) do rmdir /Q /S " %%I "
186+ :no-clean
185187
186188if defined noprojgen if defined nobuild if not defined sign if not defined msi goto licensertf
187189
You can’t perform that action at this time.
0 commit comments