svn commit: r288951 - head/lib/clang

Dimitry Andric dim at FreeBSD.org
Tue Oct 6 19:49:54 UTC 2015


Author: dim
Date: Tue Oct  6 19:49:53 2015
New Revision: 288951
URL: https://svnweb.freebsd.org/changeset/base/288951

Log:
  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

Modified:
  head/lib/clang/clang.build.mk

Modified: head/lib/clang/clang.build.mk
==============================================================================
--- head/lib/clang/clang.build.mk	Tue Oct  6 19:31:07 2015	(r288950)
+++ head/lib/clang/clang.build.mk	Tue Oct  6 19:49:53 2015	(r288951)
@@ -247,9 +247,11 @@ 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 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/}


More information about the svn-src-head mailing list