Skip to content

Commit 1da2d4d

Browse files
committed
Add powerpc64le-unknown-linux-gnu
1 parent baac02d commit 1da2d4d

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# `powerpc64le-unknown-linux-gnu`
2+
3+
**Tier: 2**
4+
5+
Target for 64-bit little endian PowerPC Linux programs
6+
7+
## Target maintainers
8+
9+
- David Tenty `[email protected]`, https://github.com/daltenty
10+
- Chris Cambly, `[email protected]`, https://github.com/gilamn5tr
11+
12+
## Requirements
13+
14+
Building the target itself requires a 64-bit little endian PowerPC compiler that is supported by `cc-rs`.
15+
16+
## Building the target
17+
18+
The target can be built by enabling it for a `rustc` build.
19+
20+
```toml
21+
[build]
22+
target = ["powerpc64le-unknown-linux-gnu"]
23+
```
24+
25+
Make sure your C compiler is included in `$PATH`, then add it to the `config.toml`:
26+
27+
```toml
28+
[target.powerpc64le-unknown-linux-gnu]
29+
cc = "powerpc64le-linux-gnu-gcc"
30+
cxx = "powerpc64le-linux-gnu-g++"
31+
ar = "powerpc64le-linux-gnu-ar"
32+
linker = "powerpc64le-linux-gnu-gcc"
33+
```
34+
35+
## Building Rust programs
36+
37+
This target is distributed through `rustup`, and requires no special
38+
configuration.
39+
40+
## Cross-compilation
41+
42+
This target can be cross-compiled from any host.
43+
44+
## Testing
45+
46+
This target can be tested as normal with `x.py` on a 64-bit little endian
47+
PowerPC host or via QEMU emulation.

0 commit comments

Comments
 (0)