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>
This commit is contained in:
Thomas Rohloff
2025-07-18 11:58:42 +02:00
parent dc918a936b
commit a3801d4a01
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -108,6 +108,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU|Clang|AppleClang")
-Wno-narrowing \
-Wno-missing-braces \
-ffast-math \
-flto=auto \
-pipe"
)