Skip to content

Commit 13679a9

Browse files
committed
add arm64 support for M1 Mac
1 parent ceabeea commit 13679a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/modules/SwiftSupport.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
function(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)
1214
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64")
1315
set("${result_var_name}" "aarch64" PARENT_SCOPE)
1416
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ppc64")

0 commit comments

Comments
 (0)