From abc36dbb8e127f9351ccd8e4d470c214d67e7994 Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 28 Oct 2025 20:47:12 +0000 Subject: [PATCH] [cmake] fix compilation for Intel Atom N455 Signed-off-by: lizzie --- CMakeLists.txt | 4 ++-- src/CMakeLists.txt | 6 ++++-- src/video_core/CMakeLists.txt | 4 ---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4181c8d7b7..0b7692cfbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -189,9 +189,9 @@ if (CXX_CLANG_CL) $<$:/EHsc> # thanks microsoft ) - if (ARCHITECTURE_x86_64) + # REQUIRED CPU features IN windows specifically and amd64 + if (ARCHITECTURE_x86_64 AND WIN32) add_compile_options( - # Required CPU features for amd64 $<$:-msse4.1> $<$:-mcx16> ) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3e8a822ad9..29f55307a8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -178,8 +178,10 @@ else() if (MINGW) add_compile_definitions(MINGW_HAS_SECURE_API) - add_compile_options("-msse4.1") - + # Only windows has this requirement, or does it? + if (WIN32) + add_compile_options("-msse4.1") + endif() if (MINGW_STATIC_BUILD) add_compile_definitions(QT_STATICPLUGIN) add_compile_options("-static") diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index db99c2bcb9..f437663963 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt @@ -384,10 +384,6 @@ if (ARCHITECTURE_x86_64) macro/macro_jit_x64.h ) target_link_libraries(video_core PUBLIC xbyak::xbyak) - - if (NOT MSVC) - target_compile_options(video_core PRIVATE -msse4.1) - endif() endif() if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64)