Skip to content

paritytech/rustc-rv32e-toolchain

Repository files navigation

Compiled Rust Toolchain for RV32E

This repository compile and publish as release final binaries of the Rust toolchain targetting RISC-V RV32E.

Building

First, follow the installation instructions to install ninja.

Next, execute the following commands:

./clone.sh
./patch.sh
./build.sh
./package.sh

Executing those steps will create a rust-rve-nightly-$rust_commit_date-$TOOLCHAIN_HOST_TRIPLET.xz in your working directory. See the next chapter about installation how to use this toolchain with rustup.

Installation

You can either download a package from the release page or build it yourself with the instructions above. The following steps will make the toolchain available via rustup's +rve-nightly syntax.

tar --zstd -xf rust-rve-nightly-$rust_commit_date-$TOOLCHAIN_HOST_TRIPLET.xz
mv rve-nightly ~/.rustup/toolchains/
# Clear the "downloaded" attribute recursively on macOS to satisfy GateKeeper
xattr -rc ~/.rustup/toolchains/rve-nightly

The last step is needed when downloading the binary toolchain with Safari. Otherwise GateKeeper will prevent running downloaded binaries without code signature:

326768663-26a8b06f-5074-485e-9677-12806b0454bd

Build with ci-unified

If there is a need to build the toolchain using Parity default CI environment, tweak the build step as follows:

export CXX=/usr/bin/clang++-15
...
./build.sh --DCMAKE_BUILD_TYPE=Release
...