https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/176387
>From 2c6181de915cdb410525534d39bfc7ec886fe05e Mon Sep 17 00:00:00 2001 From: Charles Zablit <[email protected]> Date: Fri, 16 Jan 2026 10:36:52 +0000 Subject: [PATCH] [lldb][windows] switch to Python 3.11 for the non ARM64 release builds (#175796) This patch is a follow up to [RFC#89434](https://discourse.llvm.org/t/rfc-sync-python-versions-on-windows/89434). Python 3.11 is the first official Python.org release to have an arm64 installer on Windows, which is why it's the version used to build the toolchain on arm64 Windows. The x86 and x64 variants of the toolchain both use Python 3.10 which can be confusing for users who get different install dependencies based on their architectures. This patch syncs all the required Pythons to install the toolchain, by bumping the requirements to 3.11 for x86, x64 and arm64 Windows. (cherry picked from commit 301c0d91b558a31a8d907b206070427b8eaa60dd) --- .github/workflows/release-binaries.yml | 4 ++-- llvm/utils/release/build_llvm_release.bat | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml index e58b3443808f0..a727cf5d929c5 100644 --- a/.github/workflows/release-binaries.yml +++ b/.github/workflows/release-binaries.yml @@ -215,13 +215,13 @@ jobs: # get changed unexpectedly. - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 with: - python-version: '3.10' + python-version: '3.11.9' # For some reason this is needed on Windows or else the build system can't find python3.lib. - name: Setup Python library path if: runner.os == 'Windows' run: | - echo "LIB=$env:LIB;C:\hostedtoolcache\windows\Python\3.10.11\x64\libs" >> $env:GITHUB_ENV + echo "LIB=$env:LIB;C:\hostedtoolcache\windows\Python\3.11.9\x64\libs" >> $env:GITHUB_ENV - name: Setup crlf if: runner.os == 'Windows' diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index 8bedb6eda6e86..a5c461662bb37 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -19,7 +19,7 @@ echo --x86: build and test x86 variant echo --x64: build and test x64 variant echo --arm64: build and test arm64 variant echo --skip-checkout: use local git checkout instead of downloading src.zip -echo --local-python: use installed Python and does not try to use a specific version (3.10) +echo --local-python: use installed Python and does not try to use a specific version (3.11) echo --force-msvc: use MSVC compiler for stage0, even if clang-cl is present echo. echo Note: At least one variant to build is required. @@ -115,8 +115,8 @@ echo Using VS devcmd: %vsdevcmd% :: start echoing what we do @echo on -set python32_dir=C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python310-32 -set python64_dir=C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python310 +set python32_dir=C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python311-32 +set python64_dir=C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python311 set pythonarm64_dir=C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python311-arm64 set revision=llvmorg-%version% _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
