Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
20a8efc233 [cmake] enable LTO for shader_recompiler,common,main qt exec
All checks were successful
eden-license / license-header (pull_request) Successful in 23s
Signed-off-by: lizzie <lizzie@eden-emu.dev>
2025-09-24 02:26:42 +02:00
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

@ -492,4 +492,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)