Go to file
2020-04-23 09:32:09 -07:00
.gitignore Remove generated file 2020-04-23 09:32:09 -07:00
build.sh Remove generated file 2020-04-23 09:32:09 -07:00
config.toml Initial commit 2020-04-21 12:38:28 -07:00
LICENSE Initial commit 2020-04-21 12:38:28 -07:00
README.md Initial commit 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

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