Skip to content

Commit a0b6fc1

Browse files
authored
Add RISC-V 64 bit (microsoft#4894)
- Add riscv64 target to config.guess - Update config-ix.cmake to update config-ix.cmake to support riscv64 - Tested on riscv64
1 parent 2a9052a commit a0b6fc1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

autoconf/config.guess

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,9 @@ EOF
977977
ppc:Linux:*:*)
978978
echo powerpc-unknown-linux-gnu
979979
exit ;;
980+
riscv64:Linux:*:*)
981+
echo ${UNAME_MACHINE}-unknown-linux-gnu
982+
exit ;;
980983
s390:Linux:*:* | s390x:Linux:*:*)
981984
echo ${UNAME_MACHINE}-ibm-linux
982985
exit ;;

cmake/config-ix.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ elseif (LLVM_NATIVE_ARCH MATCHES "wasm32")
365365
set(LLVM_NATIVE_ARCH WebAssembly)
366366
elseif (LLVM_NATIVE_ARCH MATCHES "wasm64")
367367
set(LLVM_NATIVE_ARCH WebAssembly)
368+
elseif (LLVM_NATIVE_ARCH MATCHES "riscv64")
369+
set(LLVM_NATIVE_ARCH RISCV)
368370
else ()
369371
message(FATAL_ERROR "Unknown architecture ${LLVM_NATIVE_ARCH}")
370372
endif ()

0 commit comments

Comments
 (0)