Skip to content

fix: allow lto to be off in CMake 3.9+ #2347

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

Closed
wants to merge 2 commits into from
Closed

fix: allow lto to be off in CMake 3.9+ #2347

wants to merge 2 commits into from

Conversation

henryiii
Copy link
Collaborator

@henryiii henryiii commented Jul 31, 2020

If CMAKE_INTERPROCEDURAL_OPTIMIZATION is defined to OFF, respect that (CMake 3.9+). Closes #1415.

@henryiii
Copy link
Collaborator Author

By the way, I could respect this being set to OFF even before 3.9, to have a universal way to turn it off in emergencies.

@henryiii
Copy link
Collaborator Author

henryiii commented Aug 5, 2020

I'm going to have to address this in a slightly different way - will either be part of the FindPython work or added just after it.

@henryiii
Copy link
Collaborator Author

henryiii commented Aug 8, 2020

PR #2370 does this in a slightly different way.

@henryiii henryiii closed this Aug 8, 2020
@henryiii henryiii deleted the fix/lto_off branch August 8, 2020 00:29
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.

GCC 4.8 LTO Crashes
1 participant