diff options
author | dim <dim@FreeBSD.org> | 2015-10-06 19:49:53 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-10-06 19:49:53 +0000 |
commit | 4b2b2cb1c966e76885839ea06fb86a82bae0ad45 (patch) | |
tree | 37f5faafa2a810fa94957ee841a100fd5ab0f7ef /lib/clang | |
parent | 0e49f5d86b54500a598b859bfc54a5455ea8adf1 (diff) | |
download | FreeBSD-src-4b2b2cb1c966e76885839ea06fb86a82bae0ad45.zip FreeBSD-src-4b2b2cb1c966e76885839ea06fb86a82bae0ad45.tar.gz |
For llvm/clang libraries, skip including tablegen-produced .d files when
the target is "make depend". This works around errors during
incremental make depend of some clang libraries, for example "don't know
how to make contrib/llvm/include/llvm/IR/IntrinsicsR600.td".
Reported by: emaste
Diffstat (limited to 'lib/clang')
-rw-r--r-- | lib/clang/clang.build.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk index 1610a90..acb09f5 100644 --- a/lib/clang/clang.build.mk +++ b/lib/clang/clang.build.mk @@ -247,9 +247,11 @@ Checkers.inc.h: ${CLANG_SRCS}/lib/StaticAnalyzer/Checkers/Checkers.td -I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \ ${CLANG_SRCS}/lib/StaticAnalyzer/Checkers/Checkers.td -.for dep in ${TGHDRS:C/$/.inc.d/} -. sinclude "${dep}" -.endfor +.if !make(depend) +. for dep in ${TGHDRS:C/$/.inc.d/} +. sinclude "${dep}" +. endfor +.endif SRCS+= ${TGHDRS:C/$/.inc.h/} DPSRCS+= ${TGHDRS:C/$/.inc.h/} |