File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -370,6 +370,9 @@ get_architecture() {
370370 riscv64)
371371 _cputype=riscv64gc
372372 ;;
373+ loongarch64)
374+ _cputype=loongarch64
375+ ;;
373376 * )
374377 err " unknown CPU type: $_cputype "
375378
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ static LIST_ARCHS: &[&str] = &[
2222 "powerpc64le" ,
2323 "riscv64gc" ,
2424 "s390x" ,
25+ "loongarch64" ,
2526] ;
2627static LIST_OSES : & [ & str ] = & [
2728 "pc-windows" ,
Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ pub fn this_host_triple() -> String {
9999 "riscv64gc"
100100 } else if cfg ! ( target_arch = "aarch64" ) {
101101 "aarch64"
102+ } else if cfg ! ( target_arch = "loongarch64" ) {
103+ "loongarch64"
102104 } else {
103105 unimplemented ! ( )
104106 } ;
You can’t perform that action at this time.
0 commit comments