aboutsummaryrefslogtreecommitdiff
path: root/lib/clang
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2020-04-03 15:52:44 +0000
committerEd Maste <emaste@FreeBSD.org>2020-04-03 15:52:44 +0000
commitf0d060f91b10e99fcb710df51096783b3329e14d (patch)
tree145f4975cc29b9abdc704fa30c8d884c6d071336 /lib/clang
parent317111316dd38bdd89db51454e453c49232555f7 (diff)
downloadsrc-f0d060f91b10e99fcb710df51096783b3329e14d.tar.gz
src-f0d060f91b10e99fcb710df51096783b3329e14d.zip
lldb: add rule to generate LLDBWrapLua.cpp
Building lldb's lua/python bindings requires swig, but we do not want to include it in the FreeBSD base system (as a build tool) because it has non-trivial dependencies. As a workaround, add a make rule to generate LLDBWrapLua.cpp, and we will commit the generated file. Requires the swig30 package. Reviewed by: brooks Discussed with: dim Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24265
Notes
Notes: svn path=/head/; revision=359599
Diffstat (limited to 'lib/clang')
-rw-r--r--lib/clang/liblldb/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/clang/liblldb/Makefile b/lib/clang/liblldb/Makefile
index 19605f7e5b9f..47aff8fcd0ec 100644
--- a/lib/clang/liblldb/Makefile
+++ b/lib/clang/liblldb/Makefile
@@ -679,4 +679,17 @@ CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/}
INTERNALLIB=
+# Building lldb's bindings requires swig, but we do not want to include it in
+# the FreeBSD base system (as a build tool) because it has non-trivial
+# dependencies. As a workaround we commit the generated file. Requires the
+# swig30 package.
+#
+# After importing an updated llvm/lldb into FreeBSD run `make run-swig` in
+# this directory to generate generate LLDBWrapLua.cpp, and commit the result.
+.PHONY: run-swig
+run-swig:
+ swig3.0 -I${LLDB_SRCS}/include \
+ -c++ -features autodoc -lua -w503 \
+ -o ${.CURDIR}/LLDBWrapLua.cpp ${LLDB_SRCS}/bindings/lua.swig
+
.include <bsd.lib.mk>