{{ message }}
bpo-41181: macOS build script uses LTO and PGO#21256
Closed
vstinner wants to merge 1 commit into
Closed
Conversation
The script to build the macOS installer now configures Python with Link Time Optimization (LTO) and Profile-Guided Optimizatio (PGO).
Member
Author
Sorry, something went wrong.
Member
Author
|
macOS 10.15.4 provides clang 11.0.3, but it seems like python.org binaries are built with Clang 6.0: https://bugs.python.org/issue41181#msg372743 While GCC had bugs with LTO a few years ago, as far as I recall, Clang always fine with LTO. PGO is a command optimization, I'm not aware of any issue with GCC or Clang. Note: on macOS, "gcc" is a wrapper to Clang in practice: Maybe the build script should be more explicit and require clang explicitly. |
Sorry, something went wrong.
4383
suggested changes
Jul 1, 2020
Member
|
Thanks for the suggestion but, as discussed in the bpo issue, we are not using this option now. |
Sorry, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.
The script to build the macOS installer now configures Python with
Link Time Optimization (LTO) and Profile-Guided Optimizatio (PGO).
https://bugs.python.org/issue41181