From c17014a055adc655942b717101380e7e2eb5c063 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 11 Feb 2024 02:15:06 +0300 Subject: [PATCH] Buildfiles improvements --- buildfiles/cmake/ConfigureCompiler.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buildfiles/cmake/ConfigureCompiler.cmake b/buildfiles/cmake/ConfigureCompiler.cmake index 5d2a3413f3..5530765c59 100644 --- a/buildfiles/cmake/ConfigureCompiler.cmake +++ b/buildfiles/cmake/ConfigureCompiler.cmake @@ -34,12 +34,15 @@ else() add_compile_options(-fstack-protector) 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) add_compile_options(-march=armv8.4-a) else() add_compile_options(-march=armv8.1-a) 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) endif()