Skip to content

Commit

Permalink
docs: Update ROFL instructions for sapphire-localnet
Browse files Browse the repository at this point in the history
  • Loading branch information
matevz committed Sep 12, 2024
1 parent 94e4454 commit b11eab6
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/rofl/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ file to your project's top-level directory as well.
To install the appropriate version of the Rust toolchain, make sure you are
in the project directory and run:

```
```shell
rustup show
```

Expand All @@ -77,13 +77,28 @@ nightly-2022-08-22-x86_64-unknown-linux-gnu (overridden by '/code/rust-toolchain
rustc 1.65.0-nightly (c0941dfb5 2022-08-21)
```

ROFL binaries should be compiled for [MUSL C standard library]. You will need
to add the following target to your rust environment:

```shell
rustup target add x86_64-unknown-linux-musl
```

Additionally, you will need the MUSL wrapper for gcc. On Ubuntu/Debian systems,
you can install it by running:

```shell
sudo apt install musl-tools
```

<!-- markdownlint-disable line-length -->
[rustup]: https://rustup.rs/
[rust-upstream-rustup]: https://www.rust-lang.org/tools/install
[download `rustup-init` executable for your platform]: https://rust-lang.github.io/rustup/installation/other.html
[Rust]: https://www.rust-lang.org/
[`rust-toolchain.toml`]: https://github.com/oasisprotocol/oasis-sdk/tree/main/rust-toolchain.toml
[rust-toolchain-precedence]: https://github.com/rust-lang/rustup/blob/master/README.md#override-precedence
[MUSL]: https://musl.libc.org/
<!-- markdownlint-enable line-length -->

## SGXS Utilities
Expand Down

0 comments on commit b11eab6

Please sign in to comment.