You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"make coverage" should not leak coverage compiler flags to third party C extensions #79682
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-02-10.23:57:24.842>created_at=<Date2018-12-14.18:47:02.318>labels= ['build', '3.8']
title='"make coverage" should not leak coverage compiler flags to third party C extensions'updated_at=<Date2020-02-10.23:57:24.841>user='https://github.com/vstinner'
"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".
changed the title [-]"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[/+]on Dec 18, 2018
Activity
vstinner commentedon Dec 14, 2018
"make coverage" modifies CFLAGS and LIBS, Makefile.pre.in:
coverage:
$(MAKE) @DEF_MAKE_RULE@ CFLAGS="$ (CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov"
@echo "Building with support for coverage checking:"
$(MAKE) clean profile-removal
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".
[-]"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[/+]vstinner commentedon Feb 10, 2020
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.