DAGDA SEARCH | Back to results | Support

Issue 35501: "make coverage" should not leak coverage compiler flags to third party C extensions - Python tracker

Source: https://bugs.python.org/issue35501

homepage

Issue35501 ➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Created on 2018-12-14 18:47 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg331850 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-12-14 18:47
"make coverage" modifies CFLAGS and LIBS, Makefile.pre.in:

coverage:
	@echo "Building with support for coverage checking:"
	$(MAKE) clean profile-removal
	$(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov"

CFLAGS_NODIST should be used instead here. I'm not sure about LIBS: do we need LIBS_NODIST, as we have CFLAGS_NODIST? LIBS_NODIST would be used for Python and C extensions of the stdlib, but not for third-party C extensions: not used by distutils.


See also bpo-35257: "Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST".
msg361757 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-02-10 23:57
It's unclear to me if it's a real issue or not. Moreover, I'm not comfortable to change the Makefile. So I just close the issue.
History
Date User Action Args
2022-04-11 14:59:09adminsetgithub: 79682
2020-02-10 23:57:24vstinnersetstatus: open -> closed
resolution: out of date
messages: + msg361757

stage: resolved
2018-12-18 00:52:14vstinnersettitle: "make coverage" should use leak coverage flags to third party C extensions -> "make coverage" should not leak coverage compiler flags to third party C extensions
2018-12-14 18:47:02vstinnercreate
Supported by The Python Software Foundation,
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements