From 04f1f56494d309bba43e8383ac8726dcd4911de6 Mon Sep 17 00:00:00 2001 From: Jan Wielemaker Date: Mon, 30 Dec 2024 14:16:09 +0100 Subject: [PATCH] Extend configure with .gcov --- scripts/configure | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/configure b/scripts/configure index feee490d73..90d9c0d64c 100755 --- a/scripts/configure +++ b/scripts/configure @@ -83,6 +83,17 @@ case $config in ;; esac +# gcov +# +# Prepare for coverage analysis + +case $config in + *gcov*) + opts+=" -DGCOV=ON -DINSTALL_TESTS=ON" + CFLAGS+=" -fno-inline" + ;; +esac + # c11 # # Enable pedantic C11 checking for GCC. Use for compliancy testing as