Author: emaste Date: Fri Apr 3 15:52:44 2020 New Revision: 359599 URL: https://svnweb.freebsd.org/changeset/base/359599
Log: 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 Modified: head/lib/clang/liblldb/Makefile Modified: head/lib/clang/liblldb/Makefile ============================================================================== --- head/lib/clang/liblldb/Makefile Fri Apr 3 15:47:15 2020 (r359598) +++ head/lib/clang/liblldb/Makefile Fri Apr 3 15:52:44 2020 (r359599) @@ -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> _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"