From 69f70eac106326f0376b3f76be9cd3282b8b92ca Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sun, 2 Jun 2024 16:09:54 +0200 Subject: [PATCH] fxsdk: enable LTO by default on new projects --- fxsdk/assets/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fxsdk/assets/CMakeLists.txt b/fxsdk/assets/CMakeLists.txt index 137cc4d..e4acfa5 100644 --- a/fxsdk/assets/CMakeLists.txt +++ b/fxsdk/assets/CMakeLists.txt @@ -30,7 +30,7 @@ set(ASSETS_cg fxconv_declare_assets(${ASSETS} ${ASSETS_fx} ${ASSETS_cg} WITH_METADATA) add_executable(myaddin ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}}) -target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -g) +target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -g -flto) target_link_libraries(myaddin Gint::Gint) if("${FXSDK_PLATFORM_LONG}" STREQUAL fx9860G)