Skip to content

Provide -ld_new linker build flag for the macOS build. #129072

@corona10

Description

@corona10

From Xcode15, apple provides a new linker(, which is faster than the classic linker.
(But from my analysis, it is up to workload..)
See: https://news.ycombinator.com/item?id=36218330

It would be great if the CPython is built on Xcode15 and we should compare the build speed with the classic linker too.
Only thing we have to do is check installed XCode version and than set the linker to use ld_new. (old one is ld_classic) and not sure of the advantage of applying to CPython. (Because of my benchmark result was not that great for the normal build and PGO+LTO build) but for the more fat build like python-build-standalone, maybe worth to do it?

cc @ronaldoussoren @ned-deily @zanieb

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-macbuildThe build process and cross-buildtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions