Partially apply LTO to only core and video_core projects.

This commit is contained in:
Matías Locatti 2023-02-27 01:01:44 -03:00 committed by Matías Locatti
parent b385fc2cd1
commit 7cc539e8b8
4 changed files with 11 additions and 1 deletions

View file

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