[3.8] bpo-42235: [macOS] Use LTO/PGO in build-installer.py with new enough compilers (GH-23079) by miss-islington · Pull Request #25832 · python/cpython
return result
def compilerCanOptimize(): """ Return True iff the default Xcode version can use PGO and LTO """ # bpo-42235: The version check is pretty conservative, can be # adjusted after testing mac_ver = tuple(map(int, platform.mac_ver()[0].split('.'))) return mac_ver >= (10, 15)
# Instructions for building packages inside the .mpkg. def pkg_recipes():