This directory contains utilities to build a toolchain to be used to cross-compile packages.
First make sure blimp-builder
has been built. Go to its directory and use:
cargo build --release --features network
Then, you can specify the target triplet for which the toolchain compiles with the TARGET
environment variable. Example:
export TARGET="x86_64-unknown-linux-musl"
Then, in this directory use build.sh
to build the toolchain:
./build.sh
This may take a while. When done, the toolchain is available in the toolchain/
directory.
The environment to use the toolchain can be set using:
TARGET="<target-triplet>" source ./env.sh
The TARGET
environment variable is used by env.sh
to determine the target to compile for.
Then, blimp-builder
can be used to cross compile packages.