mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-02-03 18:49:28 -05:00
Fix code coverage measurement
This commit is contained in:
parent
67bdb1b6a9
commit
ae60ab99bb
2 changed files with 3 additions and 2 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue