diff mbox series

[PULL,04/26] Makefile: explicitly pass $(SRC_PATH) to gcovr

Message ID 20190312170931.25013-5-alex.bennee@linaro.org
State New
Headers show
Series [PULL,01/26] travis: Bump Xcode 10 image to 10.2 | expand

Commit Message

Alex Bennée March 12, 2019, 5:09 p.m. UTC
In an out-of-tree build gcovr can get quite confused about what is
going on otherwise.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 6ccb8639b0..7202ac76dc 100644
--- a/Makefile
+++ b/Makefile
@@ -964,7 +964,7 @@  $(filter %.1 %.7 %.8,$(DOCS)): scripts/texi2pod.pl
 %/coverage-report.html:
 	@mkdir -p $*
 	$(call quiet-command,\
-		gcovr -p --html --html-details -o $@, \
+		gcovr -r $(SRC_PATH) -p --html --html-details -o $@, \
 		"GEN", "coverage-report.html")
 
 .PHONY: coverage-report