Skip to content

Commit b6969fe

Browse files
authored
build: Add support for ARM64 to the CMake build
Add support for ARM64 as a target architecture for builds. Windows ARM64 should be possible to support, though calling convention issues may cause troubles at the moment.
1 parent b7afacc commit b6969fe

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
@@ -29,6 +29,8 @@ function(get_swift_host_arch result_var_name)
2929
set("${result_var_name}" "armv7" PARENT_SCOPE)
3030
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "armv7-a")
3131
set("${result_var_name}" "armv7" PARENT_SCOPE)
32+
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ARM64")
33+
set("${result_var_name}" "x86_64" PARENT_SCOPE)
3234
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "AMD64")
3335
set("${result_var_name}" "x86_64" PARENT_SCOPE)
3436
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "IA64")

0 commit comments

Comments
 (0)