rust-powerpc-unknown-netbsd/README.md

36 lines
585 B
Markdown
Raw Permalink Normal View History

2020-04-21 12:38:28 -07:00
A script for building the Rust compiler with the standard library for
cross-building for PowerPC NetBSD.
This script has only been tested on ArchLinux.
# Dependencies
```bash
sudo pacman -S llvm rustup curl
```
# Build
```bash
./build.sh build
```
# Install
```bash
sudo ./build.sh install
```
# Link
Link a rustup toolchain for use.
```bash
./build.sh link
```
To build a cargo project, ensure `.cargo/config` exists with the contents:
```toml
[target.powerpc-unknown-netbsd]
linker = "powerpc--netbsd-gcc"
```
Then run `cargo +powerpc build --target=powerpc-unknown-netbsd`