Skip to content

Commit 6642ce3

Browse files
committed
[cmake] Support OpenBSD amd64 architecture name.
x86_64 is spelled "amd64" on this platform. Return "amd64", for consistency with Swift and other projects.
1 parent 880bf65 commit 6642ce3

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
@@ -27,6 +27,8 @@ function(get_swift_host_arch result_var_name)
2727
set("${result_var_name}" "armv7" PARENT_SCOPE)
2828
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "armv7l")
2929
set("${result_var_name}" "armv7" PARENT_SCOPE)
30+
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "amd64")
31+
set("${result_var_name}" "amd64" PARENT_SCOPE)
3032
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "AMD64")
3133
set("${result_var_name}" "x86_64" PARENT_SCOPE)
3234
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "IA64")

0 commit comments

Comments
 (0)