build/gcov: Override SCC - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit d0c8ee4efa225ebecb471bef5bcbe3a7033de81c
DIR parent 937941341d13f7fd6da062d332faf4a1be4edd04
HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Wed, 6 May 2026 21:33:16 +0200
build/gcov: Override SCC
When the gcov toolchain is used then we don't want to use
scc for the tests, because that removes any possibility
of extracting coverage information. We still have problems
with the coverage of the libc, because when we use gcc then
we use the gcc libc.
Diffstat:
M scripts/build/tool/gcov.mk | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/scripts/build/tool/gcov.mk b/scripts/build/tool/gcov.mk
@@ -2,6 +2,8 @@ PROFILE_CFLAGS = -fprofile-arcs -ftest-coverage
PROFILE_LDLIBS = -lgcov
include $(BUILDDIR)/tool/gnu.mk
+SCC = $(CROSS_COMPILE)$(COMP)
+
coverage: FORCE
mkdir -p coverage
lcov -c -d . -o coverage/cov.info