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 \
|
||||
--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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue