Need to account for SRCS that don't get compiled with --coverage, e.g., .S files
This commit is contained in:
parent
0623f2fd61
commit
1a2361e50e
@ -4,7 +4,12 @@
|
||||
|
||||
FILESGROUPS?= FILES
|
||||
|
||||
GCNOS= ${COV_OBJS:.o=.gcno}
|
||||
cov_objs_no_suffixes= ${COV_OBJS:R}
|
||||
.for src in ${COV_SRCS:R}
|
||||
.if ${cov_objs_no_suffixes:M${src}}
|
||||
GCNOS+= ${src}.gcno
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
.if !empty(GCNOS)
|
||||
GCNOS:= ${GCNOS:O:u}
|
||||
|
@ -454,6 +454,7 @@ _libinstall:
|
||||
.include <bsd.nls.mk>
|
||||
.if defined(_COV_FLAG)
|
||||
COV_OBJS= ${SOBJS:.pico=.o}
|
||||
COV_SRCS= ${SRCS:M*.[c|cc|cpp|cxx|C]}
|
||||
.include <bsd.cov.mk>
|
||||
.endif
|
||||
.include <bsd.files.mk>
|
||||
|
@ -303,6 +303,7 @@ NLSNAME?= ${PROG}
|
||||
.include <bsd.confs.mk>
|
||||
.if defined(_COV_FLAG)
|
||||
COV_OBJS= ${OBJS}
|
||||
COV_SRCS= ${SRCS:M*.[c|cc|cpp|cxx|C]}
|
||||
.include <bsd.cov.mk>
|
||||
.endif
|
||||
.include <bsd.files.mk>
|
||||
|
Loading…
x
Reference in New Issue
Block a user