https://github.com/charles-zablit created https://github.com/llvm/llvm-project/pull/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. >From cae2c62781c85488b955cb62f585541506937372 Mon Sep 17 00:00:00 2001 From: Charles Zablit <[email protected]> Date: Wed, 15 Jul 2026 13:51:27 +0100 Subject: [PATCH] [lldb][Windows] Enforce Python 3.11 --- lldb/cmake/modules/FindPythonAndSwig.cmake | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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() _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
