[Lldb-commits] [lldb] [lldb] Use PY_VERSION_HEX to simplify conditional compilation (NFC) (PR #114346)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 31 02:51:29 PDT 2024


================
@@ -47,6 +47,10 @@ static llvm::Expected<bool> *g_fcxx_modules_workaround [[maybe_unused]];
 
 // Include python for non windows machines
 #include <Python.h>
+
+// 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 Python 3.0");
----------------
DavidSpickett wrote:

"at least Python 3.0"

https://github.com/llvm/llvm-project/pull/114346


More information about the lldb-commits mailing list