File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 99function (get_swift_host_arch result_var_name)
1010 if ("${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "x86_64" )
1111 set ("${result_var_name} " "x86_64" PARENT_SCOPE)
12- elseif ("${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "arm64" )
13- set ("${result_var_name} " "arm64" PARENT_SCOPE)
14- elseif ("${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "aarch64" )
15- set ("${result_var_name} " "aarch64" PARENT_SCOPE)
12+ elseif ("${CMAKE_SYSTEM_PROCESSOR} " MATCHES "AArch64|aarch64|arm64" )
13+ if (CMAKE_SYSTEM_NAME MATCHES Darwin)
14+ set ("${result_var_name} " "arm64" PARENT_SCOPE)
15+ else ()
16+ set ("${result_var_name} " "aarch64" PARENT_SCOPE)
17+ endif ()
1618 elseif ("${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "ppc64" )
1719 set ("${result_var_name} " "powerpc64" PARENT_SCOPE)
1820 elseif ("${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "ppc64le" )
You can’t perform that action at this time.
0 commit comments