[Lldb-commits] [lldb] a4d12bf - [lldb][Windows] Enforce Python 3.11 (#209759)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 15 06:29:40 PDT 2026
Author: Charles Zablit
Date: 2026-07-15T14:29:36+01:00
New Revision: a4d12bf0c2ab2acfd772a8fd6ad216e3a17e5c49
URL: https://github.com/llvm/llvm-project/commit/a4d12bf0c2ab2acfd772a8fd6ad216e3a17e5c49
DIFF: https://github.com/llvm/llvm-project/commit/a4d12bf0c2ab2acfd772a8fd6ad216e3a17e5c49.diff
LOG: [lldb][Windows] Enforce Python 3.11 (#209759)
https://github.com/llvm/llvm-project/pull/191159 recommended Python 3.11
or later. Now that llvm 23 has branched, we can enforce Python 3.11 as
the minimum requirement.
Added:
Modified:
lldb/cmake/modules/FindPythonAndSwig.cmake
Removed:
################################################################################
diff --git a/lldb/cmake/modules/FindPythonAndSwig.cmake b/lldb/cmake/modules/FindPythonAndSwig.cmake
index 764c6a4f3fd40..ce6d684787ffd 100644
--- a/lldb/cmake/modules/FindPythonAndSwig.cmake
+++ b/lldb/cmake/modules/FindPythonAndSwig.cmake
@@ -68,9 +68,8 @@ else()
endif()
if (WIN32)
- set(LLDB_RECOMMENDED_PYTHON "3.11")
- if(PYTHONANDSWIG_FOUND AND "${Python3_VERSION}" VERSION_LESS "${LLDB_RECOMMENDED_PYTHON}")
- message(WARNING "Using Python ${Python3_VERSION}. ${LLDB_RECOMMENDED_PYTHON} "
- "is recommended and will be required from LLDB 24.")
+ set(LLDB_REQUIRED_PYTHON "3.11")
+ if(PYTHONANDSWIG_FOUND AND "${Python3_VERSION}" VERSION_LESS "${LLDB_REQUIRED_PYTHON}")
+ message(ERROR "Using Python ${Python3_VERSION}. Python ${LLDB_REQUIRED_PYTHON}+ is required.")
endif()
endif()
More information about the lldb-commits
mailing list