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() {
370
370
riscv64)
371
371
_cputype=riscv64gc
372
372
;;
373
+ loongarch64)
374
+ _cputype=loongarch64
375
+ ;;
373
376
* )
374
377
err " unknown CPU type: $_cputype "
375
378
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ static LIST_ARCHS: &[&str] = &[
22
22
"powerpc64le" ,
23
23
"riscv64gc" ,
24
24
"s390x" ,
25
+ "loongarch64" ,
25
26
] ;
26
27
static LIST_OSES : & [ & str ] = & [
27
28
"pc-windows" ,
Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ pub fn this_host_triple() -> String {
99
99
"riscv64gc"
100
100
} else if cfg ! ( target_arch = "aarch64" ) {
101
101
"aarch64"
102
+ } else if cfg ! ( target_arch = "loongarch64" ) {
103
+ "loongarch64"
102
104
} else {
103
105
unimplemented ! ( )
104
106
} ;
You can’t perform that action at this time.
0 commit comments