Skip to content

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.

2 participants