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 \ --ignore-errors source \
--no-checksum \ --no-checksum \
--compat-libtool \ --compat-libtool \
--rc geninfo_unexecuted_blocks=1 \
--output-file $(CODE_COVERAGE_INFO) --output-file $(CODE_COVERAGE_INFO)
else else
@echo "You need to run configure with --enable-code-coverage to enable code coverage" @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([,]) changequote([,])
dnl Add the coverage flags (clang, gcc) dnl Add the coverage flags (clang, gcc)
CFLAGS="$CFLAGS --coverage" CFLAGS="$CFLAGS --coverage -fprofile-update=atomic"
LDFLAGS="$LDFLAGS --coverage" LDFLAGS="$LDFLAGS --coverage -fprofile-update=atomic"
]) ])
]) # AC_CODE_COVERAGE ]) # AC_CODE_COVERAGE