Skip to content

Commit f322163

Browse files
committed
Update compile_to_ppc build instructions
1 parent b67e120 commit f322163

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

compile_to_ppc/.cargo/config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build]
2+
target-dir = "../target"
3+
4+
[target.powerpc-unknown-linux-gnu]
5+
rustflags = ["-C", "relocation-model=static", "-C", "target-cpu=750"]

compile_to_ppc/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
This directory contains crates that are compiled to PPC and some associated helper proc-macros. Compiling these crates requires having the nightly compiler and the `powerpc-unknown-linux-gnu` target installed. You can install them with `rustup`:
1+
This directory contains crates that are compiled to PPC and some associated helper proc-macros. Compiling these crates requires having the `powerpc-unknown-linux-gnu` target installed. You can install them with `rustup`:
22

33
```
4-
rustup toolchain install nightly
5-
rustup target add --toolchain nightly powerpc-unknown-linux-gnu
4+
rustup target add --toolchain stable powerpc-unknown-linux-gnu
65
```
76

8-
The recommended command to compile any of these crates is:
7+
A nightly-only feature is required to build `primeapi-rs`, so the `RUSTC_BOOTSTRAP=1` environment variable must be set when building most anything in this directory. Thus, the recommended command to compile any of these crates is:
98

109
```
11-
cargo +nightly rustc --release --target powerpc-unknown-linux-gnu -- -C relocation-model=static
10+
RUSTC_BOOTSTRAP=1 cargo rustc -p rel_patches --release --target powerpc-unknown-linux-gnu -- -C relocation-model=static
1211
```

0 commit comments

Comments
 (0)