Skip to content

darwin: add support for ThinLTO #2865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2022
Merged

darwin: add support for ThinLTO #2865

merged 1 commit into from
May 22, 2022

Conversation

aykevl
Copy link
Member

@aykevl aykevl commented May 22, 2022

Now that we use the lld linker (see #2586), we can add support for ThinLTO on MacOS. This allows some more optimizations at link time that aren't possible before that point. It also reduces executable sizes a bit, although that's not the main goal (verified using #2864).

The main motivation is that I eventually want to use ThinLTO on all platforms so that we can rely on ThinLTO for certain optimizations.

@aykevl aykevl mentioned this pull request May 22, 2022
@deadprogram deadprogram merged commit 0460700 into dev May 22, 2022
@deadprogram deadprogram deleted the macos-thinlto branch May 22, 2022 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants