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

Enable LTO for build #155

Open
Skylion007 opened this issue Sep 17, 2021 · 1 comment
Open

Enable LTO for build #155

Skylion007 opened this issue Sep 17, 2021 · 1 comment

Comments

@Skylion007
Copy link

One option to improve the size / performance of the conda package that would only come at the expense of compile time would be to enable Link Time Optimization for the conda recipe. This could be accomplished by adding -DLLVM_ENABLE_LTO=ON to the build.sh script (the default is off). It is not enabled automatically by building in Release mode. It would have the benefit of both generating faster binaries as well as binaries that are potentially smaller.

@Skylion007 Skylion007 mentioned this issue Sep 17, 2021
5 tasks
@isuruf
Copy link
Member

isuruf commented Sep 17, 2021

I don't think that's a good idea. LTO implies we need to use the same compiler/compiler version for all downstream packages which we are not going to enforce.

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

No branches or pull requests

2 participants