From 6718b0683ef495cc0e82c7d9cee41f3db54bc194 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sat, 10 Feb 2024 17:43:36 +0300 Subject: [PATCH] Don't include x64 options when building arm64 --- buildfiles/cmake/ConfigureCompiler.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/buildfiles/cmake/ConfigureCompiler.cmake b/buildfiles/cmake/ConfigureCompiler.cmake index 65ca678bcd..5d2a3413f3 100644 --- a/buildfiles/cmake/ConfigureCompiler.cmake +++ b/buildfiles/cmake/ConfigureCompiler.cmake @@ -33,16 +33,14 @@ else() add_compile_options(-fno-exceptions) add_compile_options(-fstack-protector) - if (COMPILER_X86) - add_compile_options(-msse -msse2 -mcx16) - endif() - if (COMPILER_ARM) if (APPLE) add_compile_options(-march=armv8.4-a) else() add_compile_options(-march=armv8.1-a) endif() + else() + add_compile_options(-msse -msse2 -mcx16) endif() add_compile_options(-Werror=old-style-cast)