Fix code coverage measurement

This commit is contained in:
Daniel Salzman 2025-12-06 19:30:49 +01:00
parent 67bdb1b6a9
commit ae60ab99bb
2 changed files with 3 additions and 2 deletions

View file

@ -58,6 +58,7 @@ if CODE_COVERAGE_ENABLED
--ignore-errors source \
--no-checksum \
--compat-libtool \
--rc geninfo_unexecuted_blocks=1 \
--output-file $(CODE_COVERAGE_INFO)
else
@echo "You need to run configure with --enable-code-coverage to enable code coverage"

View file

@ -29,7 +29,7 @@ AC_DEFUN([AX_CODE_COVERAGE], [
changequote([,])
dnl Add the coverage flags (clang, gcc)
CFLAGS="$CFLAGS --coverage"
LDFLAGS="$LDFLAGS --coverage"
CFLAGS="$CFLAGS --coverage -fprofile-update=atomic"
LDFLAGS="$LDFLAGS --coverage -fprofile-update=atomic"
])
]) # AC_CODE_COVERAGE