Enable Link-Time Optimization (LTO) for the Release build profile #285
zamazan4ik
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I noticed that in the build scripts Link-Time Optimization (LTO) is not enabled for the Release build profile. I suggest trying to enable it since it can help reduce the binary size and perform better compiler optimizations. In the most basic case, it can be enabled with
-flto
compiler flag (for Clang/GCC compilers) or via CMAKE_INTERPROCEDURAL_OPTIMIZATION if we want to control it on the CMake level.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions