summaryrefslogtreecommitdiffstats
path: root/lib/clang
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-03-11 04:17:39 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-03-11 04:17:39 +0000
commit7d184288717893d0b477ef3ca74b465dc38f9203 (patch)
tree8dfe72d303410d6259194d870f99529e48a04541 /lib/clang
parentf0db244394c49d3031076230e3282062aa6ae429 (diff)
downloadFreeBSD-src-7d184288717893d0b477ef3ca74b465dc38f9203.zip
FreeBSD-src-7d184288717893d0b477ef3ca74b465dc38f9203.tar.gz
Use the new bmake .dinclude feature to make these safe.
At least FAST_DEPEND won't even run 'make depend', so the code was potentially broken with FAST_DEPEND anyhow. The .dinclude directive will ignore missing files rather than make them be fatal. Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib/clang')
-rw-r--r--lib/clang/clang.build.mk14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk
index 8ab2399..5a3d169 100644
--- a/lib/clang/clang.build.mk
+++ b/lib/clang/clang.build.mk
@@ -240,11 +240,15 @@ 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
-.if !make(depend)
-. for dep in ${TGHDRS:C/$/.inc.d/}
-. sinclude "${dep}"
-. endfor
-.endif
+.for dep in ${TGHDRS:C/$/.inc.d/}
+. if ${MAKE_VERSION} < 20160220
+. if !make(depend)
+. sinclude "${dep}"
+. endif
+. else
+. dinclude "${dep}"
+. endif
+.endfor
SRCS+= ${TGHDRS:C/$/.inc.h/}
CLEANFILES+= ${TGHDRS:C/$/.inc.h/} ${TGHDRS:C/$/.inc.d/}
OpenPOWER on IntegriCloud