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/}
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to