Skip to content

Commit 4273ad2

Browse files
authored
Add support for Apple Silicon in SwiftSupport.cmake (#257)
This matches the behavior of [a similar `elseif` branch in the Swift toolchain itself](https://github.com/apple/swift/blob/b80e4bf8f866be26a4108bd92f97b2a182662642/CMakeLists.txt#L594).
1 parent 53555a0 commit 4273ad2

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
@@ -10,6 +10,8 @@ function(get_swift_host_arch result_var_name)
1010
set("${result_var_name}" "x86_64" PARENT_SCOPE)
1111
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64")
1212
set("${result_var_name}" "aarch64" PARENT_SCOPE)
13+
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "arm64")
14+
set("${result_var_name}" "aarch64" PARENT_SCOPE)
1315
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ppc64")
1416
set("${result_var_name}" "powerpc64" PARENT_SCOPE)
1517
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ppc64le")

0 commit comments

Comments
 (0)