[Lldb-commits] [PATCH] D96096: [lldb] Emit type annotation in SWIG generated Python code.

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 4 18:11:15 PST 2021


JDevlieghere created this revision.
JDevlieghere added reviewers: labath, lanza, LLDB.
Herald added a subscriber: mgorny.
JDevlieghere requested review of this revision.

The Python code generated by SWIG is compatible with both Python 2 and Python 3. The -py3 option enables Python 2 incompatible features such as function annotations and abstract base classes.

Given that this only affects the generated code (and as such doesn't cause merge conflicts downstream) we're happy to enable it


https://reviews.llvm.org/D96096

Files:
  lldb/bindings/python/CMakeLists.txt


Index: lldb/bindings/python/CMakeLists.txt
===================================================================
--- lldb/bindings/python/CMakeLists.txt
+++ lldb/bindings/python/CMakeLists.txt
@@ -10,6 +10,7 @@
       -c++
       -shadow
       -python
+      -py3
       -threads
       -outdir ${CMAKE_CURRENT_BINARY_DIR}
       -o ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96096.321627.patch
Type: text/x-patch
Size: 379 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210205/d80e0d18/attachment.bin>


More information about the lldb-commits mailing list