Date: Fri, 3 Apr 2020 15:52:44 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r359599 - head/lib/clang/liblldb Message-ID: <202004031552.033Fqi3t071774@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004031552.033Fqi3t071774>