Enable LTO if available

This commit is contained in:
Tim Angus committed 2025-11-24 12:22:13 +00:00
1 parent 190b64633f
commit ff05fee2bf
2 files changed
+9

No files matched your search

+3
View File
@@ -15,6 +15,9 @@ set(USE_OPENAL_DLOPEN OFF CACHE INTERNAL "")
set(BUILD_GAME_LIBRARIES OFF CACHE INTERNAL "")
set(USE_HTTP OFF CACHE INTERNAL "")
# Disable LTO since the libraries Emscripten provides aren't LTO enabled
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE)
list(APPEND CLIENT_LINK_OPTIONS
-sTOTAL_MEMORY=256MB
-sSTACK_SIZE=5MB