Skip to content

Commit

Permalink
Merge pull request #422 from apple/riscv64
Browse files Browse the repository at this point in the history
[CMake] Handle riscv64
  • Loading branch information
lorentey authored Sep 24, 2024
2 parents 44187cf + a49afbe commit 671108c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/modules/SwiftSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ function(get_swift_host_arch result_var_name)
set("${result_var_name}" "wasm32" PARENT_SCOPE)
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "wasm64")
set("${result_var_name}" "wasm64" PARENT_SCOPE)
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "riscv64")
set("${result_var_name}" "riscv64" PARENT_SCOPE)
else()
message(FATAL_ERROR "Unrecognized architecture on host system: ${CMAKE_SYSTEM_PROCESSOR}")
endif()
Expand Down

0 comments on commit 671108c

Please sign in to comment.