diff options
| author | Thomas Rohloff <v10lator@myway.de> | 2025-07-18 11:58:42 +0200 |
|---|---|---|
| committer | Thomas Rohloff <v10lator@myway.de> | 2025-07-18 11:58:48 +0200 |
| commit | a3801d4a01fda8f9a0801b9eb17919e6fd92c590 (patch) | |
| tree | 9fbb853e727e365e2de121771baa654ff4c2296a /CMakeLists.txt | |
| parent | dc918a936b1874f2850893cbe3de8db4be79e7a3 (diff) | |
Enable link-time optimization
LTO should help optimizing spaghetti code better. This caused a lot of crashes in the past but looks stable with the latest code fixes in master, so I think it's time to enable it.
Signed-off-by: Thomas Rohloff <v10lator@myway.de>
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d076c5e28..751c5e778 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,6 +108,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU|Clang|AppleClang") -Wno-narrowing \ -Wno-missing-braces \ -ffast-math \ + -flto=auto \ -pipe" ) |
