File tree Expand file tree Collapse file tree 4 files changed +59
-1
lines changed Expand file tree Collapse file tree 4 files changed +59
-1
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,11 @@ def v(*args):
249249 "target.mips64el-unknown-linux-muslabi64.musl-root" ,
250250 "mips64el-unknown-linux-muslabi64 install directory" ,
251251)
252+ v (
253+ "musl-root-powerpc64" ,
254+ "target.powerpc64-unknown-linux-musl.musl-root" ,
255+ "powerpc64-unknown-linux-musl install directory" ,
256+ )
252257v (
253258 "musl-root-powerpc64le" ,
254259 "target.powerpc64le-unknown-linux-musl.musl-root" ,
Original file line number Diff line number Diff line change 7272 - [ powerpc-unknown-linux-gnuspe] ( platform-support/powerpc-unknown-linux-gnuspe.md )
7373 - [ powerpc-unknown-linux-muslspe] ( platform-support/powerpc-unknown-linux-muslspe.md )
7474 - [ powerpc64-ibm-aix] ( platform-support/aix.md )
75+ - [ powerpc64-unknown-linux-musl] ( platform-support/powerpc64-unknown-linux-musl.md )
7576 - [ powerpc64le-unknown-linux-gnu] ( platform-support/powerpc64le-unknown-linux-gnu.md )
7677 - [ powerpc64le-unknown-linux-musl] ( platform-support/powerpc64le-unknown-linux-musl.md )
7778 - [ riscv32e\* -unknown-none-elf] ( platform-support/riscv32e-unknown-none-elf.md )
Original file line number Diff line number Diff line change @@ -356,7 +356,7 @@ target | std | host | notes
356356[ ` powerpc-wrs-vxworks-spe ` ] ( platform-support/vxworks.md ) | ✓ | |
357357[ ` powerpc64-ibm-aix ` ] ( platform-support/aix.md ) | ? | | 64-bit AIX (7.2 and newer)
358358[ ` powerpc64-unknown-freebsd ` ] ( platform-support/freebsd.md ) | ✓ | ✓ | PPC64 FreeBSD (ELFv2)
359- ` powerpc64-unknown-linux-musl ` | ? | | 64-bit PowerPC Linux with musl 1.2.3
359+ [ ` powerpc64-unknown-linux-musl ` ] ( platform-support/powerpc64-unknown-linux-musl.md ) | ✓ | ✓ | PPC64 Linux (kernel 4.19, musl 1.2.3)
360360[ ` powerpc64-unknown-openbsd ` ] ( platform-support/openbsd.md ) | ✓ | ✓ | OpenBSD/powerpc64
361361[ ` powerpc64-wrs-vxworks ` ] ( platform-support/vxworks.md ) | ✓ | |
362362[ ` powerpc64le-unknown-freebsd ` ] ( platform-support/freebsd.md ) | ✓ | ✓ | PPC64LE FreeBSD
Original file line number Diff line number Diff line change 1+ # powerpc64-unknown-linux-musl
2+
3+ ** Tier: 3**
4+
5+ Target for 64-bit big endian PowerPC Linux programs using musl libc.
6+ This target uses the ELF v2 ABI.
7+
8+ ## Target maintainers
9+
10+ - [ @Gelbpunkt ] ( https://github.com/Gelbpunkt )
11+ - [ @famfo ] ( https://github.com/famfo )
12+ - [ @neuschaefer ] ( https://github.com/neuschaefer )
13+
14+ ## Requirements
15+
16+ Building the target itself requires a 64-bit big endian PowerPC compiler that
17+ is supported by ` cc-rs ` .
18+
19+ ## Building the target
20+
21+ The target can be built by enabling it for a ` rustc ` build.
22+
23+ ``` toml
24+ [build ]
25+ target = [" powerpc64-unknown-linux-musl" ]
26+ ```
27+
28+ Make sure your C compiler is included in ` $PATH ` , then add it to the
29+ ` bootstrap.toml ` :
30+
31+ ``` toml
32+ [target .powerpc64-unknown-linux-musl ]
33+ cc = " powerpc64-linux-musl-gcc"
34+ cxx = " powerpc64-linux-musl-g++"
35+ ar = " powerpc64-linux-musl-ar"
36+ linker = " powerpc64-linux-musl-gcc"
37+ ```
38+
39+ ## Building Rust programs
40+
41+ Rust does not yet ship pre-compiled artifacts for this target. To compile for
42+ this target, you will first need to build Rust with the target enabled (see
43+ "Building the target" above).
44+
45+ ## Cross-compilation
46+
47+ This target can be cross-compiled from any host.
48+
49+ ## Testing
50+
51+ This target can be tested as normal with ` x.py ` on a 64-bit big endian PowerPC
52+ host or via QEMU emulation.
You can’t perform that action at this time.
0 commit comments