diff options
author | 2017-09-08 12:14:33 -0700 | |
---|---|---|
committer | 2017-09-08 12:14:33 -0700 | |
commit | 4c81401b3a9ffa48fc9e1ffff9963cbad5111e33 (patch) | |
tree | 9d55dc5abd1c0d6ae99657ae5dcce9ff1b8f00e9 /Makefile.pre.in | |
parent | bpo-28182: Expose OpenSSL verification results (#3412) (diff) | |
download | cpython-4c81401b3a9ffa48fc9e1ffff9963cbad5111e33.tar.gz cpython-4c81401b3a9ffa48fc9e1ffff9963cbad5111e33.tar.bz2 cpython-4c81401b3a9ffa48fc9e1ffff9963cbad5111e33.zip |
bpo-31354: Let configure --with-lto work on all builds
Allow configure --with-lto to apply to all builds, not just profile-opt builds.
Whether this is actually useful or not must be determined by the person
building CPython using their own toolchain.
My own quick test on x86_64 Debian 9 (gcc 6.3, binutils 2.28) seemed
to suggest that it wasn't, but I expect better toolchains can or will exist
at some point. The point is to allow it at all.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 0eb5c4dc501..1c721000833 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -463,7 +463,7 @@ profile-opt: $(MAKE) profile-removal build_all_generate_profile: - $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LDFLAGS="$(LDFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LIBS="$(LIBS)" + $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_GEN_FLAG)" LDFLAGS="$(LDFLAGS) $(PGO_PROF_GEN_FLAG)" LIBS="$(LIBS)" run_profile_task: @ # FIXME: can't run for a cross build @@ -473,7 +473,7 @@ build_all_merge_profile: $(LLVM_PROF_MERGER) build_all_use_profile: - $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_USE_FLAG) @LTOFLAGS@" LDFLAGS="$(LDFLAGS) @LTOFLAGS@" + $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_USE_FLAG)" LDFLAGS="$(LDFLAGS)" # Compile and run with gcov .PHONY=coverage coverage-lcov coverage-report |