summaryrefslogtreecommitdiff
path: root/usr.bin/clang
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-01-22 18:04:40 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-01-22 18:04:40 +0000
commit053d6b684218a3a82ea59a90758231188ffeeb2f (patch)
tree0510a92295e8c875078ec2ac96e3ab4a76fd86ae /usr.bin/clang
parent6e3f21a20c774f1b651cb4ad1ec79f311ba6cc05 (diff)
downloadsrc-test2-053d6b684218a3a82ea59a90758231188ffeeb2f.tar.gz
src-test2-053d6b684218a3a82ea59a90758231188ffeeb2f.zip
Remove customizations in #includes of Options.inc, and adjust lld
Makefile to generate the file in the right place.
Notes
Notes: svn path=/projects/clang800-import/; revision=343308
Diffstat (limited to 'usr.bin/clang')
-rw-r--r--usr.bin/clang/lld/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.bin/clang/lld/Makefile b/usr.bin/clang/lld/Makefile
index b7629b199b0b..96c2693c97d7 100644
--- a/usr.bin/clang/lld/Makefile
+++ b/usr.bin/clang/lld/Makefile
@@ -85,12 +85,13 @@ LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
.endfor
LLVM_TBLGEN?= llvm-tblgen
-ELF/Options.inc: ${LLD_SRCS}/ELF/Options.td
- ${LLVM_TBLGEN} -gen-opt-parser-defs \
- -I ${LLVM_SRCS}/include \
- -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
- ${LLVM_SRCS}/tools/lld/ELF/Options.td
-TGHDRS+= ELF/Options.inc
+INCFILE= Options.inc
+TDFILE= ${LLD_SRCS}/ELF/Options.td
+GENOPT= -gen-opt-parser-defs
+${INCFILE}: ${TDFILE}
+ ${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
+ -o ${.TARGET} ${TDFILE}
+TGHDRS+= ${INCFILE}
DPSRCS+= ${TGHDRS}
CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/}