Makefile: make gcov invocation configurable
If you customize CC to use a different version of gcc, most likely you also need to use a different version of gcov. Make it configurable. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
e8b55f5c58
commit
e146d1772b
3
Makefile
3
Makefile
@ -308,6 +308,7 @@ TCL_PATH = tclsh
|
|||||||
TCLTK_PATH = wish
|
TCLTK_PATH = wish
|
||||||
PTHREAD_LIBS = -lpthread
|
PTHREAD_LIBS = -lpthread
|
||||||
PTHREAD_CFLAGS =
|
PTHREAD_CFLAGS =
|
||||||
|
GCOV = gcov
|
||||||
|
|
||||||
export TCL_PATH TCLTK_PATH
|
export TCL_PATH TCLTK_PATH
|
||||||
|
|
||||||
@ -2312,7 +2313,7 @@ coverage-build: coverage-clean
|
|||||||
|
|
||||||
coverage-report:
|
coverage-report:
|
||||||
$(QUIET_GCOV)for dir in $(object_dirs); do \
|
$(QUIET_GCOV)for dir in $(object_dirs); do \
|
||||||
gcov $(GCOVFLAGS) --object-directory=$$dir $$dir*.c || exit; \
|
$(GCOV) $(GCOVFLAGS) --object-directory=$$dir $$dir*.c || exit; \
|
||||||
done
|
done
|
||||||
|
|
||||||
coverage-untested-functions: coverage-report
|
coverage-untested-functions: coverage-report
|
||||||
|
Loading…
Reference in New Issue
Block a user