File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,9 @@ get_architecture() {
295
295
s390x)
296
296
_cputype=s390x
297
297
;;
298
-
298
+ riscv64)
299
+ _cputype=riscv64gc
300
+ ;;
299
301
* )
300
302
err " unknown CPU type: $_cputype "
301
303
@@ -321,6 +323,9 @@ get_architecture() {
321
323
_ostype=" ${_ostype} eabihf"
322
324
fi
323
325
;;
326
+ riscv64gc)
327
+ err " riscv64 with 32-bit userland unsupported"
328
+ ;;
324
329
esac
325
330
fi
326
331
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ static LIST_ARCHS: &[&str] = &[
90
90
"powerpc" ,
91
91
"powerpc64" ,
92
92
"powerpc64le" ,
93
+ "riscv64gc" ,
93
94
"s390x" ,
94
95
] ;
95
96
static LIST_OSES : & [ & str ] = & [
Original file line number Diff line number Diff line change @@ -980,6 +980,8 @@ pub fn this_host_triple() -> String {
980
980
"i686"
981
981
} else if cfg ! ( target_arch = "x86_64" ) {
982
982
"x86_64"
983
+ } else if cfg ! ( target_arch = "riscv64" ) {
984
+ "riscv64gc"
983
985
} else {
984
986
unimplemented ! ( )
985
987
} ;
You can’t perform that action at this time.
0 commit comments