fxsdk: enable LTO by default on new projects

This commit is contained in:
Lephenixnoir 2024-06-02 16:09:54 +02:00
parent 8d6bc9c14f
commit 69f70eac10
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -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)