[cmake] enable LTO for shader_recompiler,common,main qt exec
All checks were successful
eden-license / license-header (pull_request) Successful in 17s

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2025-09-19 06:54:09 +00:00 committed by crueter
parent 6510818fca
commit 1e1839e395
3 changed files with 12 additions and 0 deletions

View file

@ -279,4 +279,8 @@ if(YUZU_USE_PRECOMPILED_HEADERS)
target_precompile_headers(common PRIVATE precompiled_headers.h)
endif()
if (YUZU_ENABLE_LTO)
set_property(TARGET common PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()
create_target_directory_groups(common)

View file

@ -270,3 +270,7 @@ create_target_directory_groups(shader_recompiler)
if (YUZU_USE_PRECOMPILED_HEADERS)
target_precompile_headers(shader_recompiler PRIVATE precompiled_headers.h)
endif()
if (YUZU_ENABLE_LTO)
set_property(TARGET shader_recompiler PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()

View file

@ -496,4 +496,8 @@ if (YUZU_ROOM)
target_link_libraries(yuzu PRIVATE yuzu-room)
endif()
if (YUZU_ENABLE_LTO)
set_property(TARGET yuzu PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()
create_target_directory_groups(yuzu)