All tested only on Debian-based systems.
The default config.toml
file provided in the repo builds the Rust toolchain for the target
x86_64-unknown-linux-gnu
, x86_64-unknown-none
, riscv64gc-unknown-none-elf
, riscv64gc-unknown-linux-gnu
,aarch64-unknown-none-softfloat
, aarch64-unknown-linux-gnu
, loongarch64-unknown-none-softfloat
, loongarch64-unknown-none
, loongarch64-unknown-linux-gnu
.
- Run
sudo sh add-apt-dependencies.sh
to install required dependencies. - Run
sudo sh sccache.sh
to install sccache, which will accelerate the compiling procedure. - Run
sh add-loongarch64-unknown-linux-gnu.sh
to install loongarch64-unknown-linux-gnu toolchain. - Run
sh add-riscv64-unknown-elf.sh
to install add-riscv64-unknown-elf toolchain. - Run
sh build-toolchain.sh
to download rust source code, and then build & install rust toolchain.
After that, you can find your toolchain at ~/.rustup/toolchains/dev
, which should be added to the environment $PATH.