From aaf949bd99b5f670e107fc76d9533afb8b158361 Mon Sep 17 00:00:00 2001 From: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com> Date: Tue, 2 Dec 2025 21:32:42 +0100 Subject: [PATCH] Revert #2934 --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 04534ec26..0d1b1b6ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,9 +53,9 @@ else() endif() if (ARCHITECTURE STREQUAL "x86_64") - # Target x86-64-v3 CPU architecture as this is a good balance between supporting performance critical - # instructions like AVX2 and maintaining support for older CPUs. - add_compile_options(-march=x86-64-v3) + # Target the same CPU architecture as the PS4, to maintain the same level of compatibility. + # Exclude SSE4a as it is only available on AMD CPUs. + add_compile_options(-march=btver2 -mtune=generic -mno-sse4a) endif() if (APPLE AND ARCHITECTURE STREQUAL "x86_64" AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")