mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
closes bpo-39575: Change -lgcov to --coverage. (GH-18382)
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
This commit is contained in:
parent
d2e1098641
commit
9a978ddb93
1 changed files with 1 additions and 1 deletions
|
|
@ -513,7 +513,7 @@ profile-opt: profile-run-stamp
|
|||
coverage:
|
||||
@echo "Building with support for coverage checking:"
|
||||
$(MAKE) clean
|
||||
$(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov"
|
||||
$(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg --coverage" LIBS="$(LIBS) --coverage"
|
||||
|
||||
coverage-lcov:
|
||||
@echo "Creating Coverage HTML report with LCOV:"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue