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 }; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits