Add lldb-tblgen tool.

This commit is contained in:
dim 2019-08-26 20:57:45 +00:00
parent 9f21cde5df
commit 006dcf6159
3 changed files with 16 additions and 1 deletions

View File

@ -6,6 +6,10 @@ SUBDIR+= clang
SUBDIR+= clang-tblgen SUBDIR+= clang-tblgen
SUBDIR+= llvm-tblgen SUBDIR+= llvm-tblgen
.if ${MK_LLDB} != "no"
SUBDIR+= lldb-tblgen
.endif
.if !defined(TOOLS_PREFIX) .if !defined(TOOLS_PREFIX)
SUBDIR+= llvm-ar SUBDIR+= llvm-ar
SUBDIR+= llvm-nm SUBDIR+= llvm-nm

View File

@ -0,0 +1,10 @@
# $FreeBSD$
PROG_CXX= lldb-tblgen
MAN=
SRCDIR= tools/lldb/utils/TableGen
SRCS+= LLDBOptionDefEmitter.cpp
SRCS+= LLDBTableGen.cpp
.include "../llvm.prog.mk"

View File

@ -8,7 +8,8 @@ CFLAGS+= -I${OBJTOP}/lib/clang/libllvm
# Special case for the bootstrap-tools phase. # Special case for the bootstrap-tools phase.
.if (defined(TOOLS_PREFIX) || ${MACHINE} == "host") && \ .if (defined(TOOLS_PREFIX) || ${MACHINE} == "host") && \
(${PROG_CXX} == "clang-tblgen" || ${PROG_CXX} == "llvm-tblgen") (${PROG_CXX} == "clang-tblgen" || ${PROG_CXX} == "lldb-tblgen" || \
${PROG_CXX} == "llvm-tblgen")
LIBDEPS+= llvmminimal LIBDEPS+= llvmminimal
.else .else
LIBDEPS+= llvm LIBDEPS+= llvm