From 4b2b2cb1c966e76885839ea06fb86a82bae0ad45 Mon Sep 17 00:00:00 2001 From: dim Date: Tue, 6 Oct 2015 19:49:53 +0000 Subject: 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 --- lib/clang/clang.build.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/clang/clang.build.mk') 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/} -- cgit v1.1