Skip to content

Commit

Permalink
fix amd64 support (#85)
Browse files Browse the repository at this point in the history
Fix when "${CMAKE_SYSTEM_PROCESSOR}" is lowercase "amd64"
  • Loading branch information
michael-yuji authored Jan 24, 2025
1 parent ae33e59 commit 24d6a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/SwiftSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function(get_swift_host_arch result_var_name)
set("${result_var_name}" "armv7" PARENT_SCOPE)
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "armv7-a")
set("${result_var_name}" "armv7" PARENT_SCOPE)
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "AMD64")
elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "AMD64|amd64")
set("${result_var_name}" "x86_64" PARENT_SCOPE)
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "IA64")
set("${result_var_name}" "itanium" PARENT_SCOPE)
Expand Down

0 comments on commit 24d6a08

Please sign in to comment.