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:
parent
e03430219a
commit
b7c0cbf6ff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user