Skip to content

Commit f8bc378

Browse files
authoredMar 10, 2025··
[CMake] Check both arm64 and aarch64 for ARM based system architecture (#1829)
While macOS will report `arm64` for `uname -m` command, others might report `aarch64`. This PR fixes this Signed-off-by: Eran Ifrah <[email protected]>
1 parent 8221a15 commit f8bc378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cmake/Modules/ValkeySetup.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ endif ()
240240
set(BUILDING_ARM64 0)
241241
set(BUILDING_ARM32 0)
242242

243-
if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "arm64")
243+
if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "arm64" OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64")
244244
set(BUILDING_ARM64 1)
245245
endif ()
246246

0 commit comments

Comments
 (0)
Please sign in to comment.