[llvm-branch-commits] [llvm] 5ab885b - [lldb][windows] switch to Python 3.11 for the non ARM64 release builds (#175796)
Cullen Rhodes via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jan 26 01:33:28 PST 2026
Author: Charles Zablit
Date: 2026-01-26T09:32:56Z
New Revision: 5ab885bf2536b01ebc4f837e689dfcfcae27a780
URL: https://github.com/llvm/llvm-project/commit/5ab885bf2536b01ebc4f837e689dfcfcae27a780
DIFF: https://github.com/llvm/llvm-project/commit/5ab885bf2536b01ebc4f837e689dfcfcae27a780.diff
LOG: [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)
Added:
Modified:
.github/workflows/release-binaries.yml
llvm/utils/release/build_llvm_release.bat
Removed:
################################################################################
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index 1b6930873e0d8..3bf6860d4e537 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -217,13 +217,13 @@ jobs:
# get changed unexpectedly.
- uses: actions/setup-python at 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%
More information about the llvm-branch-commits
mailing list