Skip to content

Commit 4c84f0a

Browse files
committed
Update the LoongArch target documentation
This patch defines minimum CPU feature requirements, updates toolchain baseline, and streamlines maintainer list: - Specify double-precision floating-point and LSX as mandatory CPU features - Raise the minimum required binutils version to 2.42+, due to relocations introduced by the default medium code model - Remove outdated maintainers to reduce irrelevant notifications
1 parent fefce3c commit 4c84f0a

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

src/doc/rustc/src/platform-support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ target | notes
9595
`arm-unknown-linux-gnueabihf` | Armv6 Linux, hardfloat (kernel 3.2+, glibc 2.17)
9696
`armv7-unknown-linux-gnueabihf` | Armv7-A Linux, hardfloat (kernel 3.2+, glibc 2.17)
9797
[`armv7-unknown-linux-ohos`](platform-support/openharmony.md) | Armv7-A OpenHarmony
98-
[`loongarch64-unknown-linux-gnu`](platform-support/loongarch-linux.md) | LoongArch64 Linux, LP64D ABI (kernel 5.19+, glibc 2.36)
99-
[`loongarch64-unknown-linux-musl`](platform-support/loongarch-linux.md) | LoongArch64 Linux, LP64D ABI (kernel 5.19+, musl 1.2.5)
98+
[`loongarch64-unknown-linux-gnu`](platform-support/loongarch-linux.md) | LoongArch64 Linux, LP64D ABI (kernel 5.19+, glibc 2.36), LSX required
99+
[`loongarch64-unknown-linux-musl`](platform-support/loongarch-linux.md) | LoongArch64 Linux, LP64D ABI (kernel 5.19+, musl 1.2.5), LSX required
100100
[`i686-pc-windows-gnu`](platform-support/windows-gnu.md) | 32-bit MinGW (Windows 10+, Windows Server 2016+, Pentium 4) [^x86_32-floats-return-ABI] [^win32-msvc-alignment]
101101
`powerpc-unknown-linux-gnu` | PowerPC Linux (kernel 3.2+, glibc 2.17)
102102
`powerpc64-unknown-linux-gnu` | PPC64 Linux (kernel 3.2+, glibc 2.17)

src/doc/rustc/src/platform-support/loongarch-linux.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ LoongArch is a RISC ISA developed by Loongson Technology Corporation Limited.
77

88
| Target | Description |
99
|--------|-------------|
10-
| `loongarch64-unknown-linux-gnu` | LoongArch64 Linux, LP64D ABI (kernel 5.19, glibc 2.36) |
11-
| `loongarch64-unknown-linux-musl` | LoongArch64 Linux, LP64D ABI (kernel 5.19, musl 1.2.5) |
10+
| `loongarch64-unknown-linux-gnu` | LoongArch64 Linux, LP64D ABI (kernel 5.19, glibc 2.36), LSX required |
11+
| `loongarch64-unknown-linux-musl` | LoongArch64 Linux, LP64D ABI (kernel 5.19, musl 1.2.5), LSX required |
1212

1313
These support both native and cross builds, and have full support for `std`.
1414

@@ -23,8 +23,6 @@ Reference material:
2323
## Target maintainers
2424

2525
[@heiher](https://github.com/heiher)
26-
[@xiangzhai](https://github.com/xiangzhai)
27-
[@zhaixiaojuan](https://github.com/zhaixiaojuan)
2826
[@xen0n](https://github.com/xen0n)
2927

3028
## Requirements
@@ -46,8 +44,8 @@ The targets require a reasonably up-to-date LoongArch toolchain on the host.
4644
Currently the following components are used by the Rust CI to build the target,
4745
and the versions can be seen as the minimum requirement:
4846

49-
* GNU Binutils 2.40
50-
* GCC 13.x
47+
* GNU Binutils 2.42
48+
* GCC 14.x
5149
* glibc 2.36
5250
* linux-headers 5.19
5351

@@ -59,6 +57,11 @@ for newer LoongArch ELF relocation types, among other features.
5957
Recent LLVM/Clang toolchains may be able to build the targets, but are not
6058
currently being actively tested.
6159

60+
### CPU features
61+
62+
These targets require the double-precision floating-point and LSX (LoongArch
63+
SIMD Extension) features.
64+
6265
## Building
6366

6467
These targets are distributed through `rustup`, and otherwise require no

0 commit comments

Comments
 (0)