Skip to content
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

Add LTO support to CMake build #59

Closed
wants to merge 1 commit into from
Closed

Add LTO support to CMake build #59

wants to merge 1 commit into from

Conversation

saghul
Copy link
Contributor

@saghul saghul commented Nov 14, 2023

No description provided.

@saghul saghul requested a review from bnoordhuis November 14, 2023 10:37
@bnoordhuis
Copy link
Contributor

I'm curious, does LTO make a difference in the quality of the generated code? It's effectively a single code unit already.

Or is this for downstream consumers? Wouldn't they normally enforce that through CMAKE_C_FLAGS?

@saghul
Copy link
Contributor Author

saghul commented Nov 14, 2023

TBH I haven't checked. Went for compatibility with the existing makefile.

We could table this for if / when there are more units ;-)

@bnoordhuis
Copy link
Contributor

I strongly lean towards "do nothing until someone complains" :-)

@bnoordhuis
Copy link
Contributor

Oh, now that I think about it: LTO produced (and still produces) no end of build and runtime issues with node due to bugs in compilers and linkers, so... yeah.

@saghul saghul closed this Nov 14, 2023
@saghul saghul deleted the cmake-lto branch November 30, 2023 08:55
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