svn commit: r280467 - projects/lld-import/lib/clang
Dimitry Andric
dim at FreeBSD.org
Tue Mar 24 21:53:17 UTC 2015
Author: dim
Date: Tue Mar 24 21:53:16 2015
New Revision: 280467
URL: https://svnweb.freebsd.org/changeset/base/280467
Log:
Add lld build glue to clang.build.mk.
Modified:
projects/lld-import/lib/clang/clang.build.mk
Modified: projects/lld-import/lib/clang/clang.build.mk
==============================================================================
--- projects/lld-import/lib/clang/clang.build.mk Tue Mar 24 21:49:08 2015 (r280466)
+++ projects/lld-import/lib/clang/clang.build.mk Tue Mar 24 21:53:16 2015 (r280467)
@@ -3,6 +3,7 @@
.include <src.opts.mk>
CLANG_SRCS= ${LLVM_SRCS}/tools/clang
+LLD_SRCS= ${LLVM_SRCS}/tools/lld
CFLAGS+= -I${LLVM_SRCS}/include -I${CLANG_SRCS}/include \
-I${LLVM_SRCS}/${SRCDIR} ${INCDIR:C/^/-I${LLVM_SRCS}\//} -I. \
@@ -220,6 +221,13 @@ Checkers.inc.h: ${CLANG_SRCS}/lib/Static
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/lib/StaticAnalyzer/Checkers/Checkers.td
+.for hdr in Core DarwinLd GnuLd UniversalDriver WinLink
+${hdr}Options.inc.h: ${LLD_SRCS}/lib/Driver/${hdr}Options.td
+ ${TBLGEN} -gen-opt-parser-defs \
+ -I ${LLVM_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
+ ${LLD_SRCS}/lib/Driver/${hdr}Options.td
+.endfor
+
.for dep in ${TGHDRS:C/$/.inc.d/}
. sinclude "${dep}"
.endfor
More information about the svn-src-projects
mailing list