blob: b9687c17b13a1fdd4448fd84852ec8c724db3a9b [file] [log] [blame]
George Burgess IVddce0e22021-03-23 15:43:20 -07001Python doesn't directly effortlessly support the use of a PGO profile that
2wasn't generated during the *current* build.
3
4profile-opt includes PGO profile generation, which is slow (requires multiple
5builds & a lengthy test phase), and makes determinism harder. If we place a PGO
6profile in the place where profile-opt normally puts one & instead use
7build_all_use_profile, all of this works effortlessly with a pre-rolled
8profile.
9
10--- a/configure.ac
11+++ b/configure.ac
12@@ -1299,7 +1299,7 @@ if test "$Py_OPT" = 'true' ; then
13 # compile working code using it and both test_distutils and test_gdb are
14 # broken when you do manage to get a toolchain that works with it. People
15 # who want LTO need to use --with-lto themselves.
16- DEF_MAKE_ALL_RULE="profile-opt"
17+ DEF_MAKE_ALL_RULE="build_all_use_profile"
18 REQUIRE_PGO="yes"
19 DEF_MAKE_RULE="build_all"
20 else