[Python-checkins] cpython (merge 3.4 -> default): Fixes issue23390: make profile-opt causes -fprofile-generate and related flags
gregory.p.smith
python-checkins at python.org
Wed Feb 4 11:20:29 CET 2015
https://hg.python.org/cpython/rev/9c46707e5526
changeset: 94499:9c46707e5526
parent: 94497:0bd76ade1c7f
parent: 94498:8957ff9776bd
user: Gregory P. Smith <greg at krypto.org>
date: Wed Feb 04 02:16:13 2015 -0800
summary:
Fixes issue23390: make profile-opt causes -fprofile-generate and related flags
to end up in distutils CFLAGS.
files:
Makefile.pre.in | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.pre.in b/Makefile.pre.in
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -488,14 +488,14 @@
$(MAKE) build_all_use_profile
build_all_generate_profile:
- $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-generate" LIBS="$(LIBS) -lgcov"
+ $(MAKE) all CFLAGS_NODIST="$(CFLAGS) -fprofile-generate" LDFLAGS="-fprofile-generate" LIBS="$(LIBS) -lgcov"
run_profile_task:
: # FIXME: can't run for a cross build
$(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK)
build_all_use_profile:
- $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-use -fprofile-correction"
+ $(MAKE) all CFLAGS_NODIST="$(CFLAGS) -fprofile-use -fprofile-correction"
# Compile and run with gcov
.PHONY=coverage coverage-lcov coverage-report
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list