rust-powerpc-unknown-netbsd/README.md
2020-04-21 12:38:28 -07:00

585 B

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

sudo pacman -S llvm rustup curl

Build

./build.sh build

Install

sudo ./build.sh install

Link

Link a rustup toolchain for use.

./build.sh link

To build a cargo project, ensure .cargo/config exists with the contents:

[target.powerpc-unknown-netbsd]
linker = "powerpc--netbsd-gcc"

Then run cargo +powerpc build --target=powerpc-unknown-netbsd