Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions rustup-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ get_architecture() {
riscv64)
_cputype=riscv64gc
;;
loongarch64)
_cputype=loongarch64
;;
*)
err "unknown CPU type: $_cputype"

Expand Down
1 change: 1 addition & 0 deletions src/dist/triple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ static LIST_ARCHS: &[&str] = &[
"powerpc64le",
"riscv64gc",
"s390x",
"loongarch64",
];
static LIST_OSES: &[&str] = &[
"pc-windows",
Expand Down
2 changes: 2 additions & 0 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ pub fn this_host_triple() -> String {
"riscv64gc"
} else if cfg!(target_arch = "aarch64") {
"aarch64"
} else if cfg!(target_arch = "loongarch64") {
"loongarch64"
} else {
unimplemented!()
};
Expand Down