File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,12 @@ See https://swift.org/LICENSE.txt for license information
1717function (get_swift_host_arch result_var_name)
1818 if ("${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "x86_64" )
1919 set ("${result_var_name} " "x86_64" PARENT_SCOPE)
20- elseif ("${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "aarch64" )
21- set ("${result_var_name} " "aarch64" PARENT_SCOPE)
20+ elseif ("${CMAKE_SYSTEM_PROCESSOR} " MATCHES "AArch64|arm64" )
21+ if (CMAKE_SYSTEM_NAME MATCHES Darwin)
22+ set ("${result_var_name} " "arm64" PARENT_SCOPE)
23+ else ()
24+ set ("${result_var_name} " "aarch64" PARENT_SCOPE)
25+ endif ()
2226 elseif ("${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "ppc64" )
2327 set ("${result_var_name} " "powerpc64" PARENT_SCOPE)
2428 elseif ("${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "ppc64le" )
You can’t perform that action at this time.
0 commit comments