aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-04-18 21:39:20 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-04-18 21:39:20 +0000
commitcec65646334ecd4856de745dd0ddd1a4b5a874bf (patch)
tree6e02a930be39500fd9e3d577201ac309cc3bf055
parent6abba1c915b7ec4f98916d8e3e1203611be39f7e (diff)
downloadports-cec65646334ecd4856de745dd0ddd1a4b5a874bf.tar.gz
ports-cec65646334ecd4856de745dd0ddd1a4b5a874bf.zip
devel/llvm15: Fix build with swig 4.1.1
PR: 270720
-rw-r--r--devel/llvm15/files/patch-swig29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/llvm15/files/patch-swig b/devel/llvm15/files/patch-swig
new file mode 100644
index 000000000000..9e36f27b1f7a
--- /dev/null
+++ b/devel/llvm15/files/patch-swig
@@ -0,0 +1,29 @@
+--- lldb/bindings/interface/SBValueList.i.orig 2022-11-29 10:05:58 UTC
++++ lldb/bindings/interface/SBValueList.i
+@@ -103,7 +103,6 @@ class SBValueList (public)
+ GetFirstValueByName (const char* name) const;
+
+ %extend {
+- %nothreadallow;
+ std::string lldb::SBValueList::__str__ (){
+ lldb::SBStream description;
+ const size_t n = $self->GetSize();
+@@ -122,7 +121,6 @@ class SBValueList (public)
+ --desc_len;
+ return std::string(desc, desc_len);
+ }
+- %clearnothreadallow;
+ }
+
+ #ifdef SWIGPYTHON
+--- lldb/bindings/lua/lua-typemaps.swig.orig 2022-11-29 10:05:58 UTC
++++ lldb/bindings/lua/lua-typemaps.swig
+@@ -247,7 +247,7 @@ LLDB_NUMBER_TYPEMAP(enum SWIGTYPE);
+ // Typemap for file handles (e.g. used in SBDebugger::GetOutputFileHandle)
+
+ %typemap(out) lldb::FileSP {
+- lldb::FileSP &sp = $1;
++ const lldb::FileSP &sp = $1;
+ if (sp && sp->IsValid()) {
+ luaL_Stream *p = (luaL_Stream *)lua_newuserdata(L, sizeof(luaL_Stream));
+ p->closef = &LLDBSwigLuaCloseFileHandle;