George Burgess IV | ddce0e2 | 2021-03-23 15:43:20 -0700 | [diff] [blame^] | 1 | Python doesn't directly effortlessly support the use of a PGO profile that |
| 2 | wasn't generated during the *current* build. |
| 3 | |
| 4 | profile-opt includes PGO profile generation, which is slow (requires multiple |
| 5 | builds & a lengthy test phase), and makes determinism harder. If we place a PGO |
| 6 | profile in the place where profile-opt normally puts one & instead use |
| 7 | build_all_use_profile, all of this works effortlessly with a pre-rolled |
| 8 | profile. |
| 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 |