Skip to content

Commit 45e5426

Browse files
authored
Merge pull request #5799 from martin-frbg/fixup5793
Fix inclusion of ARMV9SME in OSX DYNAMIC_ARCH builds with CMake and gcc
2 parents 7b7aaac + 373fa9d commit 45e5426

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmake/arch.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ if (DYNAMIC_ARCH)
5858
if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR ${CMAKE_SYSTEM_NAME} STREQUAL "iOS")
5959
set(DYNAMIC_CORE ARMV8 NEOVERSEN1)
6060
if (${CMAKE_C_COMPILER_VERSION} VERSION_GREATER_EQUAL 19 OR (${CMAKE_C_COMPILER_ID} MATCHES AppleClang AND ${CMAKE_C_COMPILER_VERSION} VERSION_GREATER_EQUAL 17) ) # SME ACLE supported in LLVM >= 19 and AppleClang >= 17
61-
set(DYNAMIC_CORE ${DYNAMIC_CORE} ARMV9SME VORTEXM4)
61+
set(DYNAMIC_CORE ${DYNAMIC_CORE} VORTEXM4)
62+
endif()
63+
if (${CMAKE_C_COMPILER_VERSION} VERSION_GREATER_EQUAL 14) # SME ACLE supported in GCC >= 14
64+
set(DYNAMIC_CORE ${DYNAMIC_CORE} ARMV9SME)
6265
endif()
6366
endif()
6467

0 commit comments

Comments
 (0)