summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/CMakeLists.txt14
-rw-r--r--src/common/settings.h1
2 files changed, 3 insertions, 12 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index a12edc584..6bdffcb7a 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -149,7 +149,7 @@ if(ARCHITECTURE_x86_64)
149 x64/xbyak_abi.h 149 x64/xbyak_abi.h
150 x64/xbyak_util.h 150 x64/xbyak_util.h
151 ) 151 )
152 target_link_libraries(common PRIVATE xbyak) 152 target_link_libraries(common PRIVATE xbyak::xbyak)
153endif() 153endif()
154 154
155if (MSVC) 155if (MSVC)
@@ -174,17 +174,7 @@ endif()
174create_target_directory_groups(common) 174create_target_directory_groups(common)
175 175
176target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads) 176target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads)
177if (TARGET lz4::lz4) 177target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd)
178 target_link_libraries(common PRIVATE lz4::lz4)
179else()
180 target_link_libraries(common PRIVATE LZ4::lz4_shared)
181endif()
182if (TARGET zstd::zstd)
183 target_link_libraries(common PRIVATE zstd::zstd)
184else()
185 target_link_libraries(common PRIVATE
186 $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>)
187endif()
188 178
189if (YUZU_USE_PRECOMPILED_HEADERS) 179if (YUZU_USE_PRECOMPILED_HEADERS)
190 target_precompile_headers(common PRIVATE precompiled_headers.h) 180 target_precompile_headers(common PRIVATE precompiled_headers.h)
diff --git a/src/common/settings.h b/src/common/settings.h
index c0620066c..29b730cff 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -400,6 +400,7 @@ struct Values {
400 Setting<bool> cpuopt_fastmem{true, "cpuopt_fastmem"}; 400 Setting<bool> cpuopt_fastmem{true, "cpuopt_fastmem"};
401 Setting<bool> cpuopt_fastmem_exclusives{true, "cpuopt_fastmem_exclusives"}; 401 Setting<bool> cpuopt_fastmem_exclusives{true, "cpuopt_fastmem_exclusives"};
402 Setting<bool> cpuopt_recompile_exclusives{true, "cpuopt_recompile_exclusives"}; 402 Setting<bool> cpuopt_recompile_exclusives{true, "cpuopt_recompile_exclusives"};
403 Setting<bool> cpuopt_ignore_memory_aborts{true, "cpuopt_ignore_memory_aborts"};
403 404
404 SwitchableSetting<bool> cpuopt_unsafe_unfuse_fma{true, "cpuopt_unsafe_unfuse_fma"}; 405 SwitchableSetting<bool> cpuopt_unsafe_unfuse_fma{true, "cpuopt_unsafe_unfuse_fma"};
405 SwitchableSetting<bool> cpuopt_unsafe_reduce_fp_error{true, "cpuopt_unsafe_reduce_fp_error"}; 406 SwitchableSetting<bool> cpuopt_unsafe_reduce_fp_error{true, "cpuopt_unsafe_reduce_fp_error"};