diff options
author | Fangrui Song <i@maskray.me> | 2020-02-07 23:46:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 23:46:29 (GMT) |
commit | 9a978ddb93bf5eaa519916d9a40c4fa4edf5d854 (patch) | |
tree | c253e9fa0033b5781edfd9ea92a6f2da53fdaae7 /Makefile.pre.in | |
parent | d2e1098641f98594702ef29049c3c4a3f394786f (diff) | |
download | cpython-9a978ddb93bf5eaa519916d9a40c4fa4edf5d854.zip cpython-9a978ddb93bf5eaa519916d9a40c4fa4edf5d854.tar.gz cpython-9a978ddb93bf5eaa519916d9a40c4fa4edf5d854.tar.bz2 |
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
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 510f227..3da104b 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -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:" |