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
[Feature Request] Link-time optimization support #587
Comments
The structure of the compilation process seems roughly the same so I don't think it'd require many changes. Have you tried enabling LTO yourself by adding If it works for you we could consider making it a default. |
Oh hm, that works. I forgot why it failed for me earlier but it does now? Also, Swift seems to have |
Taking a look at the corresponding Swift Driver changes, it seems that enabling LTO in swiftc is as easy as |
Going to reopen as this is still of interest to the Theos team to implement. |
It would be nice, especially for larger projects, if there was support for Clang's LTO.
It would likely require changes to the compilation process, mainly because LTO consists of emitting LLVM bitcode (
.bc
) files rather than object fiiles (.o
), and then linking them together with LLDThis would also allow for cross-language (ObjC / C / C++ / Swift) optimization, because well, it's all bitcode in the end
The text was updated successfully, but these errors were encountered: