build: Enable link time optimization in release builds. (#6887)

This commit is contained in:
Steveice10
2023-08-26 11:15:13 -07:00
committed by GitHub
parent edf157200d
commit f2e0748a22
10 changed files with 12 additions and 8 deletions

View File

@@ -167,7 +167,6 @@ create_target_directory_groups(citra_common)
target_link_libraries(citra_common PUBLIC fmt::fmt library-headers microprofile Boost::boost Boost::serialization Boost::iostreams)
target_link_libraries(citra_common PRIVATE libzstd_static)
set_target_properties(citra_common PROPERTIES INTERPROCEDURAL_OPTIMIZATION ${ENABLE_LTO})
if ("x86_64" IN_LIST ARCHITECTURE)
target_link_libraries(citra_common PRIVATE xbyak)