aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2025-01-29 09:56:41 +0000
committerGitHub <noreply@github.com>2025-01-29 09:56:41 +0000
commit9ea64dd8781328d831d7c69a586f0c84dece1c11 (patch)
treec2fbaec5a5874a01e06695db85cf12071e1b9891 /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
parent776ef9d1bec66875c554e8a5bd0e3ae8c9543d9a (diff)
downloadllvm-9ea64dd8781328d831d7c69a586f0c84dece1c11.zip
llvm-9ea64dd8781328d831d7c69a586f0c84dece1c11.tar.gz
llvm-9ea64dd8781328d831d7c69a586f0c84dece1c11.tar.bz2
[lldb] Make Python >= 3.8 required for LLDB 21 (#124735)
As decided on https://discourse.llvm.org/t/rfc-lets-document-and-enforce-a-minimum-python-version-for-lldb/82731. LLDB 20 recommended `>= 3.8` but did not remove support for anything earlier. Now we are in what will become LLDB 21, so I'm removing that support and making `>= 3.8` required. See https://docs.python.org/3/c-api/apiabiversion.html#c.PY_VERSION_HEX for the format of PY_VERSION_HEX.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h b/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
index b68598b..4a6c11d 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
@@ -50,8 +50,8 @@ static llvm::Expected<bool> *g_fcxx_modules_workaround [[maybe_unused]];
// Provide a meaningful diagnostic error if someone tries to compile this file
// with a version of Python we don't support.
-static_assert(PY_VERSION_HEX >= 0x03000000,
- "LLDB requires at least Python 3.0");
+static_assert(PY_VERSION_HEX >= 0x03080000,
+ "LLDB requires at least Python 3.8");
#endif
#endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_LLDB_PYTHON_H