Index: head/lib/clang/liblldb/Makefile =================================================================== --- head/lib/clang/liblldb/Makefile +++ head/lib/clang/liblldb/Makefile @@ -679,4 +679,17 @@ 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