[Lldb-commits] [lldb] r365718 - [swig] Add workaround for old swig

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 10 17:12:59 PDT 2019


Author: jdevlieghere
Date: Wed Jul 10 17:12:59 2019
New Revision: 365718

URL: http://llvm.org/viewvc/llvm-project?rev=365718&view=rev
Log:
[swig] Add workaround for old swig

Apparently, when using swig 1.3.40, properties to set values do not work
without the `__swig_setmethods__` workaround. I conditionally added this
back for SBTypeCategory, as it's causing a test failure on GreenDragon,
while I investigate this further.

Modified:
    lldb/trunk/scripts/interface/SBTypeCategory.i

Modified: lldb/trunk/scripts/interface/SBTypeCategory.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/interface/SBTypeCategory.i?rev=365718&r1=365717&r2=365718&view=diff
==============================================================================
--- lldb/trunk/scripts/interface/SBTypeCategory.i (original)
+++ lldb/trunk/scripts/interface/SBTypeCategory.i Wed Jul 10 17:12:59 2019
@@ -213,6 +213,11 @@ namespace lldb {
             name = property(GetName, None)
             enabled = property(GetEnabled, SetEnabled)
         %}
+#if SWIG_VERSION < 0x030009
+        %pythoncode %{
+           __swig_setmethods__["enabled"] = SetEnabled
+        %}
+#endif
 
     };
 




More information about the lldb-commits mailing list