Buildfiles improvements

This commit is contained in:
kd-11 2024-02-11 02:15:06 +03:00 committed by Megamouse
parent c572226b0d
commit c17014a055

View File

@ -34,12 +34,15 @@ else()
add_compile_options(-fstack-protector) add_compile_options(-fstack-protector)
if (COMPILER_ARM) if (COMPILER_ARM)
# This section needs a review. Apple claims armv8.5-a on M-series but doesn't support SVE.
# Note that compared to the rest of the 8.x family, 8.1 is very restrictive and we'll have to bump the requirement in future to get anything meaningful.
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() elseif(COMPILER_X86)
# Some compilers will set both X86 and ARM, so check explicitly for ARM first
add_compile_options(-msse -msse2 -mcx16) add_compile_options(-msse -msse2 -mcx16)
endif() endif()