Skip to content

Commit ab49da5

Browse files
authored
Small tweaks to the install instructions (#94)
* Small tweaks to the install instructions * Typo
1 parent 4737f8c commit ab49da5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To build from source, you need to ensure that the headers and object files for t
2424

2525
Alternatively, the engine can also be built from source using `c-dependencies/spidermonkey/build-engine.sh`. That should only be required if you want to modify the engine itself, however.
2626

27-
In additon you need to have the following tools installed to successfully build, and build from a linux based system.
27+
In addition you need to have the following tools installed to successfully build, and build from a linux based system.
2828

2929
- Rust
3030
```
@@ -43,21 +43,25 @@ In additon you need to have the following tools installed to successfully build,
4343
```sh
4444
rustup target add wasm32-wasi
4545
```
46-
- cbindgen
46+
- [cbindgen](https://github.com/eqrion/cbindgen#quick-start)
4747
```sh
4848
cargo install cbindgen
4949
```
50-
- wasi-sdk
50+
- [wasi-sdk, version 12](https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-12),
51+
with alternate [install instructions](https://github.com/WebAssembly/wasi-sdk#install)
5152
```sh
5253
curl -sS -L -O https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-12/wasi-sdk-12.0-linux.tar.gz
5354
tar xf wasi-sdk-12.0-linux.tar.gz
5455
sudo mkdir -p /opt/wasi-sdk
5556
sudo mv wasi-sdk-12.0/* /opt/wasi-sdk/
5657
```
58+
5759
- rust version - the rust version may need to be pinned due to the WASI spidermonkey version, the current version can be found at [main.yml](.github/workflows/main.yml) under "Install pinned Rust version and wasm32-wasi target"
5860
```
5961
rustup update 1.57.0 --no-self-update
60-
rustup default 1.57.0
62+
63+
cd /location/of/js-compute-runtime
64+
rustup override set 1.57.0
6165
```
6266

6367
Once that is done, the runtime and the CLI tool for applying it to JS source code can be built using cargo:

0 commit comments

Comments
 (0)