summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-11 00:12:59 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-11 00:12:59 +0000
commit597dc0061fd0143488ea4cf8a3faaad50278ba49 (patch)
treed9638f77caa9d0bceb50c9537827998ab3b54fa1
parente93279fd1b00f24c9cc1646faabf853cfa232a8a (diff)
downloadbcm5719-llvm-597dc0061fd0143488ea4cf8a3faaad50278ba49.tar.gz
bcm5719-llvm-597dc0061fd0143488ea4cf8a3faaad50278ba49.zip
[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
-rw-r--r--lldb/scripts/interface/SBTypeCategory.i5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/scripts/interface/SBTypeCategory.i b/lldb/scripts/interface/SBTypeCategory.i
index c183862702d..a881c1590fd 100644
--- a/lldb/scripts/interface/SBTypeCategory.i
+++ b/lldb/scripts/interface/SBTypeCategory.i
@@ -213,6 +213,11 @@ namespace lldb {
name = property(GetName, None)
enabled = property(GetEnabled, SetEnabled)
%}
+#if SWIG_VERSION < 0x030009
+ %pythoncode %{
+ __swig_setmethods__["enabled"] = SetEnabled
+ %}
+#endif
};
OpenPOWER on IntegriCloud