Skip to content

Commit

Permalink
Makefile: make gcov invocation configurable
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
trast authored and gitster committed Aug 18, 2010
1 parent e8b55f5 commit e146d17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ TCL_PATH = tclsh
TCLTK_PATH = wish
PTHREAD_LIBS = -lpthread
PTHREAD_CFLAGS =
GCOV = gcov

export TCL_PATH TCLTK_PATH

Expand Down Expand Up @@ -2312,7 +2313,7 @@ coverage-build: coverage-clean

coverage-report:
$(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

coverage-untested-functions: coverage-report
Expand Down

0 comments on commit e146d17

Please sign in to comment.