Skip to content

build: enable lto everywhere#1017

Open
dozreg-toplud wants to merge 3 commits into
developfrom
dozreg/lto
Open

build: enable lto everywhere#1017
dozreg-toplud wants to merge 3 commits into
developfrom
dozreg/lto

Conversation

@dozreg-toplud
Copy link
Copy Markdown
Contributor

Seems like this gives ~7% performance boost. Takes forever to link though.

@dozreg-toplud dozreg-toplud requested a review from a team as a code owner May 18, 2026 19:38
@dozreg-toplud
Copy link
Copy Markdown
Contributor Author

Added -Dno-lto flag to supress LTO in case if you need to build optimized build quickly. Also disabled LTO for macos targets, it doesn't work on them for some reason.

@joemfb
Copy link
Copy Markdown
Collaborator

joemfb commented May 20, 2026

Previously: #487; for macos, thinlto was used in #469.

@dozreg-toplud
Copy link
Copy Markdown
Contributor Author

I am getting error: error: using LLD to link macho files is unsupported when trying to build with LLD on, and it wouldn't build without LLD either

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