Skip to content

Commit

Permalink
cmake : fix build tests on arm (#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
andriiryzhkov authored Jan 25, 2025
1 parent 1f17c91 commit 32f0b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ d to bad performance. For more info see: https://github.com/ggerganov/whisper.cp
endif()
endif()

if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^(aarch64|arm.*|ARM64)$")
message(STATUS "ARM detected")
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mcpu=apple-m1")
elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc64le" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc64")
Expand Down

0 comments on commit 32f0b85

Please sign in to comment.