Skip to content

Commit 93e7a79

Browse files
Steelskincompnerd
authored andcommitted
[cmake] Recognize "arm64" as a supported arch
On macOS with ARM processors, CMAKE_SYSTEM_PROCESSOR is set to "arm64", which was not properly recognized as an "aarch64" architecture.
1 parent 90a8e2e commit 93e7a79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/modules/SwiftSupport.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ function(get_swift_host_arch result_var_name)
1919
set("${result_var_name}" "x86_64" PARENT_SCOPE)
2020
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64")
2121
set("${result_var_name}" "aarch64" PARENT_SCOPE)
22+
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "arm64")
23+
set("${result_var_name}" "aarch64" PARENT_SCOPE)
2224
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ARM64")
2325
set("${result_var_name}" "aarch64" PARENT_SCOPE)
2426
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ppc64")

0 commit comments

Comments
 (0)