Commit 7a07a9be authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Add --enable-coverage

Not cleared for use by IT managers, quality and/or test engineers because of serious hazard of heart attack.
parent 1dce8464
......@@ -1489,6 +1489,22 @@ AH_TEMPLATE(NDEBUG,
[Define to 1 if debug code should NOT be compiled])
AS_IF([test "x${enable_debug}" = "xno"], [AC_DEFINE(NDEBUG)])
dnl
dnl Test coverage
dnl
AC_ARG_ENABLE(coverage,
[ --enable-debug build for test coverage (default disabled)],,
[enable_coverage="no"])
AS_IF([test "${enable_coverage}" != "no"], [
CFLAGS="-fprofile-arcs -ftest-coverage ${CFLAGS}"
CXXFLAGS="-fprofile-arcs -ftest-coverage ${CXXFLAGS}"
LDFLAGS="-lgcov ${LDFLAGS}"
dnl ugly...
CFLAGS_save="${CFLAGS}"
CXXFLAGS_save="${CXXFLAGS}"
LDFLAGS_save="${LDFLAGS}"
])
dnl
dnl Enable release-specific flags
dnl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment