Fix code coverage with cutter.
This commit is contained in:
parent
9e45b01802
commit
30d4d2967b
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ PKG_CHECK_MODULES([LIBNFC], [libnfc >= $LIBNFC_REQUIRED_VERSION], [], [AC_MSG_ER
|
|||
PKG_CONFIG_REQUIRES="libnfc"
|
||||
AC_SUBST([PKG_CONFIG_REQUIRES])
|
||||
|
||||
CUTTER_REQUIRED_VERSION=1.1.2
|
||||
CUTTER_REQUIRED_VERSION=1.1.7
|
||||
m4_ifdef([AC_CHECK_CUTTER], [AC_CHECK_CUTTER([>= $CUTTER_REQUIRED_VERSION])], [ac_cv_use_cutter="no"])
|
||||
if test x$ac_cv_with_cutter = xyes -a x$ac_cv_use_cutter = xno; then
|
||||
AC_MSG_ERROR([cutter >= $CUTTER_REQUIRED_VERSION is mandatory.])
|
||||
|
@ -72,7 +72,7 @@ AM_CONDITIONAL([WITH_CUTTER], [test "$ac_cv_use_cutter" != "no"])
|
|||
|
||||
m4_ifdef([AC_CHECK_COVERAGE], [AC_CHECK_COVERAGE])
|
||||
|
||||
if test x$ac_cv_enable_coverage = xyes; then
|
||||
if test x$cutter_enable_coverage = xyes; then
|
||||
CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue