summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMatías Locatti <42481638+goldenx86@users.noreply.github.com>2023-02-27 23:38:36 +0100
committerGitHub <noreply@github.com>2023-02-27 23:38:36 +0100
commit5f2cbf53d71dcf25e4d62d803f3e6353319eefb5 (patch)
tree3bf312f0a9d462463d68eee1dd9d641e58a2131f /src/core
parentMerge pull request #9871 from yuzu-emu/revert-9824-burning-profiles (diff)
parentPartially apply LTO to only core and video_core projects. (diff)
downloadyuzu-5f2cbf53d71dcf25e4d62d803f3e6353319eefb5.tar
yuzu-5f2cbf53d71dcf25e4d62d803f3e6353319eefb5.tar.gz
yuzu-5f2cbf53d71dcf25e4d62d803f3e6353319eefb5.tar.bz2
yuzu-5f2cbf53d71dcf25e4d62d803f3e6353319eefb5.tar.lz
yuzu-5f2cbf53d71dcf25e4d62d803f3e6353319eefb5.tar.xz
yuzu-5f2cbf53d71dcf25e4d62d803f3e6353319eefb5.tar.zst
yuzu-5f2cbf53d71dcf25e4d62d803f3e6353319eefb5.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index ff5502d87..70fa1edf5 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -861,3 +861,7 @@ endif()
if (YUZU_USE_PRECOMPILED_HEADERS)
target_precompile_headers(core PRIVATE precompiled_headers.h)
endif()
+
+if (YUZU_ENABLE_LTO)
+ set_property(TARGET core PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
+endif()