Skip to content

Commit 620cd4f

Browse files
Fix flags
1 parent 5da3349 commit 620cd4f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

PCbuild/get_external.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
import zipfile
1212

1313

14-
15-
1614
def request_with_retry(request_func, *args, max_retries=7,
1715
err_msg='Request failed.', **kwargs):
1816
"""Make a request using request_func with exponential backoff"""

PCbuild/get_externals.bat

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ for %%b in (%binaries%) do (
9292
git clone --depth 1 https://github.com/%ORG%/cpython-bin-deps --branch %%b "%EXTERNALS_DIR%\%%b"
9393
) else (
9494
echo.Fetching %%b...
95-
set "extra_flags=-b"
96-
if "%%b"=="llvm-20.1.8.0" set "extra_flags=-r"
97-
%PYTHON% -E "%PCBUILD%\get_external.py" %extra_flags% -O %ORG% -e "%EXTERNALS_DIR%" %%b
95+
if "%%b"=="llvm-20.1.8.0" (
96+
%PYTHON% -E "%PCBUILD%\get_external.py" -r -O %ORG% -e "%EXTERNALS_DIR%" %%b
97+
) else (
98+
%PYTHON% -E "%PCBUILD%\get_external.py" -b -O %ORG% -e "%EXTERNALS_DIR%" %%b
99+
)
98100
)
99101
)
100102

0 commit comments

Comments
 (0)