summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2016-04-15 23:57:04 (GMT)
committerGregory P. Smith <greg@krypto.org>2016-04-15 23:57:04 (GMT)
commitd82da9f7f22cd0e81e4de3d7331668d3aa9b0811 (patch)
tree242d8b5a519af5157256e87d9514cbb82f7350dc /Makefile.pre.in
parent1ff6b6ab121bce00cb9395fce034d09665ec8d77 (diff)
downloadcpython-d82da9f7f22cd0e81e4de3d7331668d3aa9b0811.zip
cpython-d82da9f7f22cd0e81e4de3d7331668d3aa9b0811.tar.gz
cpython-d82da9f7f22cd0e81e4de3d7331668d3aa9b0811.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 cfa6a5f..17c0b57 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