Fix port/kernel builds after r359681

Submitted by:	bdrewery
Reported by:	bdrewery, sobomax, antoine
This commit is contained in:
Kyle Evans 2020-04-07 15:10:04 +00:00
parent 610acef538
commit cddd13a4f4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359690

View File

@ -215,8 +215,8 @@ CFLAGS+= -Wno-format-zero-length
#
# XXX: This is a hack to support complete external installs of clang while
# we work to synchronize our decleration guards with those in the clang tree.
.if ${MK_CLANG_BOOTSTRAP} == "no" && ${COMPILER_RESOURCE_DIR} != "unknown" && \
!defined(BOOTSTRAPPING)
.if ${MK_CLANG_BOOTSTRAP:Uno} == "no" && \
${COMPILER_RESOURCE_DIR} != "unknown" && !defined(BOOTSTRAPPING)
CFLAGS+=-nobuiltininc -idirafter ${COMPILER_RESOURCE_DIR}/include
.endif
.endif