Return True iff the default Xcode version can use PGO and LTO
()
| 405 | return result |
| 406 | |
| 407 | def 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. |
| 417 | def pkg_recipes(): |
no test coverage detected
searching dependent graphs…