Don't include x64 options when building arm64

This commit is contained in:
kd-11 2024-02-10 17:43:36 +03:00 committed by Megamouse
parent 3735df4f53
commit 6718b0683e

View File

@ -33,16 +33,14 @@ else()
add_compile_options(-fno-exceptions) add_compile_options(-fno-exceptions)
add_compile_options(-fstack-protector) add_compile_options(-fstack-protector)
if (COMPILER_X86)
add_compile_options(-msse -msse2 -mcx16)
endif()
if (COMPILER_ARM) if (COMPILER_ARM)
if (APPLE) if (APPLE)
add_compile_options(-march=armv8.4-a) add_compile_options(-march=armv8.4-a)
else() else()
add_compile_options(-march=armv8.1-a) add_compile_options(-march=armv8.1-a)
endif() endif()
else()
add_compile_options(-msse -msse2 -mcx16)
endif() endif()
add_compile_options(-Werror=old-style-cast) add_compile_options(-Werror=old-style-cast)