1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Honor CWARNFLAGS.clang/gcc in the kernel build

Some kernel builds or users may want to disable warnings on a per-compiler
basis, so do this now.
This commit is contained in:
Kyle Evans 2019-09-22 18:27:57 +00:00
parent 6dd078df19
commit b16a3c9d19
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352603

View File

@ -253,6 +253,7 @@ CFLAGS+= -gdwarf-2
.endif
CFLAGS+= ${CWARNFLAGS:M*} ${CWARNFLAGS.${.IMPSRC:T}}
CFLAGS+= ${CWARNFLAGS.${COMPILER_TYPE}}
CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} ${CFLAGS.${.IMPSRC:T}}
# Tell bmake not to mistake standard targets for things to be searched for