Skip to content

Commit 4d89e63

Browse files
authored
Rollup merge of #143747 - Gelbpunkt:aarch64-musl-maintainer, r=jieyouxu
Add target maintainer information for aarch64-unknown-linux-musl Mentioning `@famfo` so that they can review the documentation. We're both very invested in this target; I originally promoted it to tier 2 with host tools in #76420 back in 2020.
2 parents 25b1232 + a866377 commit 4d89e63

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed

src/doc/rustc/src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
- [\*-apple-watchos](platform-support/apple-watchos.md)
4747
- [\*-apple-visionos](platform-support/apple-visionos.md)
4848
- [aarch64-nintendo-switch-freestanding](platform-support/aarch64-nintendo-switch-freestanding.md)
49+
- [aarch64-unknown-linux-musl](platform-support/aarch64-unknown-linux-musl.md)
4950
- [amdgcn-amd-amdhsa](platform-support/amdgcn-amd-amdhsa.md)
5051
- [armeb-unknown-linux-gnueabi](platform-support/armeb-unknown-linux-gnueabi.md)
5152
- [arm-none-eabi](platform-support/arm-none-eabi.md)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ target | notes
9090
-------|-------
9191
[`aarch64-pc-windows-gnullvm`](platform-support/windows-gnullvm.md) | ARM64 MinGW (Windows 10+), LLVM ABI
9292
[`aarch64-pc-windows-msvc`](platform-support/windows-msvc.md) | ARM64 Windows MSVC
93-
`aarch64-unknown-linux-musl` | ARM64 Linux with musl 1.2.3
93+
[`aarch64-unknown-linux-musl`](platform-support/aarch64-unknown-linux-musl.md) | ARM64 Linux with musl 1.2.3
9494
[`aarch64-unknown-linux-ohos`](platform-support/openharmony.md) | ARM64 OpenHarmony
9595
`arm-unknown-linux-gnueabi` | Armv6 Linux (kernel 3.2+, glibc 2.17)
9696
`arm-unknown-linux-gnueabihf` | Armv6 Linux, hardfloat (kernel 3.2+, glibc 2.17)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# aarch64-unknown-linux-musl
2+
3+
**Tier: 2**
4+
5+
Target for 64-bit little endian ARMv8-A Linux programs using musl libc.
6+
7+
## Target maintainers
8+
9+
[@Gelbpunkt](https://github.com/Gelbpunkt)
10+
[@famfo](https://github.com/famfo)
11+
12+
## Requirements
13+
14+
Building the target itself requires a 64-bit little endian ARMv8-A compiler
15+
that is supported by `cc-rs`.
16+
17+
## Building the target
18+
19+
The target can be built by enabling it for a `rustc` build.
20+
21+
```toml
22+
[build]
23+
target = ["aarch64-unknown-linux-musl"]
24+
```
25+
26+
Make sure your C compiler is included in `$PATH`, then add it to the
27+
`bootstrap.toml`:
28+
29+
```toml
30+
[target.aarch64-unknown-linux-musl]
31+
cc = "aarch64-linux-musl-gcc"
32+
cxx = "aarch64-linux-musl-g++"
33+
ar = "aarch64-linux-musl-ar"
34+
linker = "aarch64-linux-musl-gcc"
35+
```
36+
37+
## Building Rust programs
38+
39+
This target is distributed through `rustup`, and otherwise requires no
40+
special configuration.
41+
42+
## Cross-compilation
43+
44+
This target can be cross-compiled from any host.
45+
46+
## Testing
47+
48+
This target can be tested as normal with `x.py` on a 64-bit little endian
49+
ARMv8-A host or via QEMU emulation.

0 commit comments

Comments
 (0)