Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump Pass -isystem and -imacro ccp flags to lint



details:   https://anonhg.NetBSD.org/src/rev/968ca28a7684
branches:  trunk
changeset: 961634:968ca28a7684
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Apr 13 22:23:42 2021 +0000

description:
Pass -isystem and -imacro ccp flags to lint

diffstat:

 sys/rump/Makefile.rump |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r 598a97860e9e -r 968ca28a7684 sys/rump/Makefile.rump
--- a/sys/rump/Makefile.rump    Tue Apr 13 22:22:02 2021 +0000
+++ b/sys/rump/Makefile.rump    Tue Apr 13 22:23:42 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.rump,v 1.130 2021/03/14 13:11:59 rin Exp $
+#      $NetBSD: Makefile.rump,v 1.131 2021/04/13 22:23:42 christos Exp $
 #
 
 .if !defined(_RUMP_MK)
@@ -56,9 +56,9 @@
 
 CWARNFLAGS+=   -Wno-format-zero-length -Wno-pointer-sign
 
-CPPFLAGS+=     -imacros ${RUMPTOP}/include/opt/opt_rumpkernel.h
+CPPIFLAGS+=    -imacros ${RUMPTOP}/include/opt/opt_rumpkernel.h
 .ifdef BUILDRUMP_IMACROS
-CPPFLAGS+=     -imacros ${BUILDRUMP_IMACROS}
+CPPIFLAGS+=    -imacros ${BUILDRUMP_IMACROS}
 .endif
 
 CPPFLAGS+=     -I${.CURDIR} -I.
@@ -70,8 +70,8 @@
 SHLIB_MINOR?=  0
 
 .ifdef NEED_ISYSTEM
-CPPFLAGS+=     -isystem ${RUMPTOP}/../arch
-CPPFLAGS+=     -isystem ${RUMPTOP}/..
+CPPIFLAGS+=    -isystem ${RUMPTOP}/../arch
+CPPIFLAGS+=    -isystem ${RUMPTOP}/..
 .else
 CPPFLAGS+=     -I${RUMPTOP}/../arch
 CPPFLAGS+=     -I${RUMPTOP}/..
@@ -261,6 +261,9 @@
 rumpdescribe: .PHONY
        @printf '%-24s %s\n' '${LIB}' '${COMMENT}'
 
+CPPFLAGS+=     ${CPPIFLAGS}
+LINTFLAGS+=    ${CPPIFLAGS:S/^/-Z /}
+
 _BSD_IOCONF_MK_USER_=1
 .include <bsd.ioconf.mk>
 



Home | Main Index | Thread Index | Old Index