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

Make LTO opt-in by default instead of opt-out #167

Merged
merged 1 commit into from Sep 9, 2022

Conversation

marcomagdy
Copy link
Contributor

LTO has caused problems to a few users (see issues linked at the bottom).
The problem is the runtime is built as a static library by default unless otherwise specified via CMake flags, and also LTO is enabled by default. Those two things combined means the user must turn on LTO when they build their application if they're using GCC.

Since we don't have evidence that LTO is making a substantial difference in the runtime, it seems prudent to leave the option but turn if off by default.

Issues where this has been reported:
#151
#128

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

LTO has caused problems to a few users (see issues linked at the
bottom).
The problem is the runtime is built as a static library by default
unless otherwise specified via CMake flags, and also LTO is enabled by
default. Those two things combined means the user must turn on LTO when
they build their application if they're using GCC.

Since we don't have evidence that LTO is making a substantial difference
in the runtime, it seems prudent to leave the option but turn if off by
default.

Issues where this has been reported:
awslabs#151
awslabs#128
@marcomagdy marcomagdy marked this pull request as ready for review September 8, 2022 17:50
@bmoffatt bmoffatt merged commit ba96347 into awslabs:master Sep 9, 2022
@marcomagdy marcomagdy deleted the disable-lto branch October 16, 2022 03:03
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

2 participants