From e20130442389b0e8c63bd2edd56f2f11722f3d01 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Tue, 9 Jul 2024 21:13:31 +0200 Subject: [PATCH] fxsdk: use -flto=auto by default to avoid lto-wrapper warning --- 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 e4acfa5..db29b4a 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 -flto) +target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -g -flto=auto) target_link_libraries(myaddin Gint::Gint) if("${FXSDK_PLATFORM_LONG}" STREQUAL fx9860G)