File tree Expand file tree Collapse file tree 3 files changed +51
-1
lines changed Expand file tree Collapse file tree 3 files changed +51
-1
lines changed Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments