Need to account for SRCS that don't get compiled with --coverage, e.g., .S files

This commit is contained in:
Enji Cooper 2017-08-20 07:06:13 +00:00
parent 0623f2fd61
commit 1a2361e50e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/runtime-coverage/; revision=322717
3 changed files with 8 additions and 1 deletions

View File

@ -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}

View File

@ -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>

View File

@ -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>