[Lldb-commits] [lldb] e5228ef - [lldb] Emit type annotation in SWIG generated Python code.

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 5 08:51:30 PST 2021


Author: Jonas Devlieghere
Date: 2021-02-05T08:51:22-08:00
New Revision: e5228ef556e5a4cb40c6c7936aada636e1b7be10

URL: https://github.com/llvm/llvm-project/commit/e5228ef556e5a4cb40c6c7936aada636e1b7be10
DIFF: https://github.com/llvm/llvm-project/commit/e5228ef556e5a4cb40c6c7936aada636e1b7be10.diff

LOG: [lldb] Emit type annotation in SWIG generated Python code.

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.

Differential revision: https://reviews.llvm.org/D96096

Added: 
    

Modified: 
    lldb/bindings/python/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lldb/bindings/python/CMakeLists.txt b/lldb/bindings/python/CMakeLists.txt
index baad7e8f0eba..2b14ee339d0d 100644
--- a/lldb/bindings/python/CMakeLists.txt
+++ b/lldb/bindings/python/CMakeLists.txt
@@ -10,6 +10,7 @@ add_custom_command(
       -c++
       -shadow
       -python
+      -py3
       -threads
       -outdir ${CMAKE_CURRENT_BINARY_DIR}
       -o ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp


        


More information about the lldb-commits mailing list