Skip to content

Commit 8af4623

Browse files
authored
Merge pull request #205 from futurejones/add-riscv64-support
add support for riscv64
2 parents 0a9ceac + 1b8fc98 commit 8af4623

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/modules/SwiftSupport.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ function(get_swift_host_arch result_var_name)
3535
set("${result_var_name}" "i686" PARENT_SCOPE)
3636
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686")
3737
set("${result_var_name}" "i686" PARENT_SCOPE)
38+
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "riscv64")
39+
set("${result_var_name}" "riscv64" PARENT_SCOPE)
3840
else()
3941
message(FATAL_ERROR "Unrecognized architecture on host system: ${CMAKE_SYSTEM_PROCESSOR}")
4042
endif()

0 commit comments

Comments
 (0)