add support for riscv64

(cherry picked from commit 7d18b37a95)

# Conflicts:
#	cmake/modules/SwiftSupport.cmake
This commit is contained in:
Neil Jones authored and Karoy Lorentey committed 2024-09-24 15:46:07 -07:00
1 parent 44187cfe62
commit a49afbe1be
1 file changed
+2
+2
View File
@@ -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()