diff options
author | emaste <emaste@FreeBSD.org> | 2016-05-05 21:20:09 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-05-05 21:20:09 +0000 |
commit | a72207b61f7b8197f1bf446e4352e09925417f6f (patch) | |
tree | 684a733fa6e366c4f1e82561b7abbcae067575b0 /lib/clang | |
parent | b140a920a4eeb79f8e95860c3bac4664a12f01dc (diff) | |
download | FreeBSD-src-a72207b61f7b8197f1bf446e4352e09925417f6f.zip FreeBSD-src-a72207b61f7b8197f1bf446e4352e09925417f6f.tar.gz |
Limit Options.inc generation to desired targets
As mentioned in the Makefile there's an "atrocious" hack to generate a
different version of Options.inc.h, depending on the library being
built.
Remove the catch-all else case and limit it to specific libraries, so
that we don't accidentally use the Options.inc.h from clangdriver if a
future libary also uses Options.inc.h.
Reviewed by: dim
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D6209
Diffstat (limited to 'lib/clang')
-rw-r--r-- | lib/clang/clang.build.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk index 5a3d169..6bc4cdf 100644 --- a/lib/clang/clang.build.mk +++ b/lib/clang/clang.build.mk @@ -221,13 +221,14 @@ Diagnostic${hdr}Kinds.inc.h: ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td .endfor # XXX: Atrocious hack, need to clean this up later -.if defined(LIB) && ${LIB} == "llvmlibdriver" +.if ${LIB:U} == llvmlibdriver Options.inc.h: ${LLVM_SRCS}/lib/LibDriver/Options.td ${LLVM_TBLGEN} -gen-opt-parser-defs \ -I ${LLVM_SRCS}/include \ -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \ ${LLVM_SRCS}/lib/LibDriver/Options.td -.else +.elif ${LIB:U} == clangdriver || ${LIB:U} == clangfrontend || \ + ${LIB:U} == clangfrontendtool || ${PROG_CXX:U} == clang Options.inc.h: ${CLANG_SRCS}/include/clang/Driver/Options.td ${LLVM_TBLGEN} -gen-opt-parser-defs \ -I ${LLVM_SRCS}/include -I ${CLANG_SRCS}/include/clang/Driver \ |