diff --git a/CMakeLists.txt b/CMakeLists.txt index 35571013a1..64a5a20ec6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -284,6 +284,10 @@ if (NOT MSVC AND ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMP set(CMAKE_CXX_ARCHIVE_APPEND " rUT ") set(CMAKE_C_ARCHIVE_APPEND " rUT ") endif() + # Maybe size reduction at cost of compile times? + if(FLATPAK) + set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) + endif() endif() # Bit of a hack for flatpak building: compress the debug info with zstd to save space in CI