Skip to content

Commit 824e09e

Browse files
committed
bpo-39575: Change -lgcov to --coverage
This allows clang to get rid of the dependency on libgcov. When linking, GCC passes -lgcov while clang passes the path to libclang_rt.profile-$arch.a
1 parent a102ed7 commit 824e09e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ profile-opt: profile-run-stamp
513513
coverage:
514514
@echo "Building with support for coverage checking:"
515515
$(MAKE) clean
516-
$(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov"
516+
$(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg --coverage" LIBS="$(LIBS) --coverage"
517517

518518
coverage-lcov:
519519
@echo "Creating Coverage HTML report with LCOV:"

0 commit comments

Comments
 (0)