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

Build using LTO if compiler supports it (requires Cmake 3.9) #649

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eklitzke
Copy link
Contributor

No description provided.

@MaskRay
Copy link
Owner

MaskRay commented Jun 11, 2020

For clang, we have -flto=full and -flto=thin, and a bunch of other customizable options. Is it simpler delegating CXXFLAGS customization to the user? LTO may have some caveats.

@MaskRay MaskRay force-pushed the master branch 2 times, most recently from 7818055 to 99f0b40 Compare July 5, 2020 22:12
@MaskRay MaskRay force-pushed the master branch 4 times, most recently from a33231a to cb08df4 Compare July 20, 2020 00:03
@Trass3r
Copy link

Trass3r commented Jul 24, 2020

Does it make a difference given that ccls presumably links to the shared llvm lib?

@MaskRay MaskRay force-pushed the master branch 3 times, most recently from ee29996 to feb153a Compare December 20, 2020 03:01
@MaskRay MaskRay force-pushed the master branch 9 times, most recently from 94ba2b3 to c018bce Compare May 9, 2021 18:34
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.

None yet

3 participants