diff options
| author | zhaixiaojuan <zhaixiaojuan@loongson.cn> | 2022-07-06 18:29:04 +0800 |
|---|---|---|
| committer | wangrui <wangrui@loongson.cn> | 2023-04-04 17:05:08 +0800 |
| commit | a5e23115bdd3b4655d2bad6076c69c90eec6f12d (patch) | |
| tree | 5c28d332210e0a10096772061343434342a655f7 | |
| parent | ad26dab27cd314d13e64fe5b49cfa5260a57ab53 (diff) | |
| download | rust-a5e23115bdd3b4655d2bad6076c69c90eec6f12d.tar.gz rust-a5e23115bdd3b4655d2bad6076c69c90eec6f12d.zip | |
library/std: Add support for loongarch64
| -rw-r--r-- | library/std/src/env.rs | 1 | ||||
| -rw-r--r-- | library/std/src/os/linux/raw.rs | 1 | ||||
| -rw-r--r-- | library/std/src/sys/common/alloc.rs | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/env.rs b/library/std/src/env.rs index 183f9ab3b08..3014fe6e2fc 100644 --- a/library/std/src/env.rs +++ b/library/std/src/env.rs @@ -895,6 +895,7 @@ pub mod consts { /// - x86_64 /// - arm /// - aarch64 + /// - loongarch64 /// - m68k /// - mips /// - mips64 diff --git a/library/std/src/os/linux/raw.rs b/library/std/src/os/linux/raw.rs index f46028c3a96..c55ca8ba26e 100644 --- a/library/std/src/os/linux/raw.rs +++ b/library/std/src/os/linux/raw.rs @@ -231,6 +231,7 @@ mod arch { } #[cfg(any( + target_arch = "loongarch64", target_arch = "mips64", target_arch = "s390x", target_arch = "sparc64", diff --git a/library/std/src/sys/common/alloc.rs b/library/std/src/sys/common/alloc.rs index 403a5e627f1..a5fcbdf39c6 100644 --- a/library/std/src/sys/common/alloc.rs +++ b/library/std/src/sys/common/alloc.rs @@ -22,6 +22,7 @@ pub const MIN_ALIGN: usize = 8; #[cfg(any( target_arch = "x86_64", target_arch = "aarch64", + target_arch = "loongarch64", target_arch = "mips64", target_arch = "s390x", target_arch = "sparc64", |
