Skip to content

Commit

Permalink
add support for riscv64
Browse files Browse the repository at this point in the history
(cherry picked from commit 7d18b37)

# Conflicts:
#	cmake/modules/SwiftSupport.cmake
  • Loading branch information
futurejones authored and lorentey committed Sep 24, 2024
1 parent 44187cf commit a49afbe
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 a49afbe

Please sign in to comment.