MCPcopy Index your code
hub / github.com/python/cpython / compilerCanOptimize

Function compilerCanOptimize

Mac/BuildScript/build-installer.py:407–414  ·  view source on GitHub ↗

Return True iff the default Xcode version can use PGO and LTO

()

Source from the content-addressed store, hash-verified

405 return result
406
407def compilerCanOptimize():
408 """
409 Return True iff the default Xcode version can use PGO and LTO
410 """
411 # bpo-42235: The version check is pretty conservative, can be
412 # adjusted after testing
413 mac_ver = tuple(map(int, platform.mac_ver()[0].split('.')))
414 return mac_ver >= (10, 15)
415
416# Instructions for building packages inside the .mpkg.
417def pkg_recipes():

Callers 1

buildPythonFunction · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…