summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2016-04-15 23:58:51 (GMT)
committerGregory P. Smith <greg@krypto.org>2016-04-15 23:58:51 (GMT)
commit79a12a2aa5087a840988a77a2e1c59c2febe182d (patch)
tree9e92dee3418aaa8cb2d39a7691ad8f782600b9c6 /Makefile.pre.in
parenta9dd804c36b2ab4bbb0e90e541224ee21ef92d73 (diff)
parentd82da9f7f22cd0e81e4de3d7331668d3aa9b0811 (diff)
downloadcpython-79a12a2aa5087a840988a77a2e1c59c2febe182d.zip
cpython-79a12a2aa5087a840988a77a2e1c59c2febe182d.tar.gz
cpython-79a12a2aa5087a840988a77a2e1c59c2febe182d.tar.bz2
Issue #25702: A --with-lto configure option has been added that will
enable link time optimizations at build time during a make profile-opt.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 2f4ca28..63805fc 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -504,7 +504,7 @@ profile-opt:
$(MAKE) profile-removal
build_all_generate_profile:
- $(MAKE) all CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_GEN_FLAG)" LDFLAGS="$(LDFLAGS) $(PGO_PROF_GEN_FLAG)" LIBS="$(LIBS)"
+ $(MAKE) all CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LDFLAGS="$(LDFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LIBS="$(LIBS)"
run_profile_task:
: # FIXME: can't run for a cross build
@@ -514,7 +514,7 @@ build_all_merge_profile:
$(LLVM_PROF_MERGER)
build_all_use_profile:
- $(MAKE) all CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_USE_FLAG)"
+ $(MAKE) all CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_USE_FLAG) @LTOFLAGS@" LDFLAGS="$(LDFLAGS) @LTOFLAGS@"
# Compile and run with gcov
.PHONY=coverage coverage-lcov coverage-report