diff options
| author | Matías Locatti <42481638+goldenx86@users.noreply.github.com> | 2023-02-27 01:01:44 -0300 |
|---|---|---|
| committer | Matías Locatti <matias.locatti@gmail.com> | 2023-02-27 18:44:14 -0300 |
| commit | 7cc539e8b8a12bb32bc8d1e588076dfbbbcfda90 (patch) | |
| tree | 669d22640971cde2d9142a0011e9d47bce023157 /src/core | |
| parent | b385fc2cd149a98854102e5c78b9a5f217c07dcc (diff) | |
Partially apply LTO to only core and video_core projects.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index ff5502d873..70fa1edf5c 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() |
