clang-scan-deps: Pass ${TDFILE} to tblgen, not ${.ALLSRC}
${.ALLSRC} can include the dependency OptParser.td, which causes
llvm-tblgen to fail since it only accepts a single input argument.
Use ${TDFILE} directly instead, which matches the other invocations
of tblgen in the LLVM Makefiles.
Fixes: d3c06bed2c ("clang: install clang-scan-deps")
MFC after: 3 days
Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D51569
This commit is contained in:
@@ -10,13 +10,14 @@ SRCS+= ClangScanDeps.cpp \
|
||||
.include "${SRCTOP}/lib/clang/clang.pre.mk"
|
||||
|
||||
CFLAGS+= -I${.OBJDIR}
|
||||
TDFILE= Opts.td
|
||||
INCFILE= ${TDFILE:.td=.inc}
|
||||
|
||||
INCFILE= Opts.inc
|
||||
TDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td
|
||||
GENOPT= -gen-opt-parser-defs
|
||||
|
||||
${INCFILE}: ${TDFILE}
|
||||
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
|
||||
-o ${.TARGET} ${.ALLSRC}
|
||||
-o ${.TARGET} ${TDFILE}
|
||||
TGHDRS+= ${INCFILE}
|
||||
|
||||
DEPENDFILES+= ${TGHDRS:C/$/.d/}
|
||||
|
||||
Reference in New Issue
Block a user