Skip to content

Commit 3c4bbb8

Browse files
committed
fixup! fix: host arch detect
1 parent e271a96 commit 3c4bbb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/turbo/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include(${PROJECT_ROOT_DIR}/cmake/option.cmake)
44
if(NOT ANDROID AND AUTO_DETECT_ARCH)
55
if (HOST_ARCH MATCHES "^(x86|x64)$")
66
setup_compiler_march_for_x86(TURBO_MARCH_FLAG_SSE TURBO_MARCH_FLAG_AVX2 TURBO_MARCH_FLAG_AVX512 TURBO_MARCH_FLAG_AVX512FP16)
7-
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|arm64|ARM64")
7+
elseif (HOST_ARCH MATCHES "^(arm|arm64)$")
88
# ARM64 architecture - no special march flags needed for now
99
# NEON implementations can be added here if needed
1010
message(STATUS "turbo: ARM64 detected, skipping x86-specific optimizations")

0 commit comments

Comments
 (0)