[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.

llvm-svn: 365718
This commit is contained in:
Jonas Devlieghere 2019-07-11 00:12:59 +00:00
parent e93279fd1b
commit 597dc0061f
1 changed files with 5 additions and 0 deletions

View File

@ -213,6 +213,11 @@ namespace lldb {
name = property(GetName, None)
enabled = property(GetEnabled, SetEnabled)
%}
#if SWIG_VERSION < 0x030009
%pythoncode %{
__swig_setmethods__["enabled"] = SetEnabled
%}
#endif
};