forked from OSchip/llvm-project
[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:
parent
e93279fd1b
commit
597dc0061f
|
@ -213,6 +213,11 @@ namespace lldb {
|
|||
name = property(GetName, None)
|
||||
enabled = property(GetEnabled, SetEnabled)
|
||||
%}
|
||||
#if SWIG_VERSION < 0x030009
|
||||
%pythoncode %{
|
||||
__swig_setmethods__["enabled"] = SetEnabled
|
||||
%}
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue