Skip to content

Commit dd789af

Browse files
authored
update documentation to use build-engine (#637)
1 parent 62742df commit dd789af

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

DEVELOPMENT.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,7 @@ to pull down or update submodules.
1616

1717
### Building the JS Compute Runtime
1818

19-
To build from source, you need to ensure that the headers and object files for the [SpiderMonkey JavaScript engine](https://spidermonkey.dev/) are available. It's recommended to download pre-built object files:
20-
```sh
21-
(cd runtime/spidermonkey && bash download-engine.sh)
22-
```
23-
24-
25-
Alternatively, the engine can also be built from source using `runtime/spidermonkey/build-engine.sh`. That should only be required if you want to modify the engine itself, however.
26-
27-
In addition you need to have the following tools installed to successfully build, and build from a linux based system.
19+
To build from source, you need to have the following tools installed to successfully build, and build from a linux based system.
2820

2921
- Rust
3022
```
@@ -56,6 +48,11 @@ In addition you need to have the following tools installed to successfully build
5648
sudo mv wasi-sdk-20.0/* /opt/wasi-sdk/
5749
```
5850

51+
Once you have those installed, you will need to compile SpiderMonkey:
52+
```
53+
(cd runtime/spidermonkey && bash build-engine.sh)
54+
```
55+
5956
Once that is done, the runtime and the CLI tool for applying it to JS source code can be built using npm:
6057
```sh
6158
npm run build

tests/wpt-harness/run-wpt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# For this to work, you'll need to have run the following command in advance:
2424
#
2525
# > cd runtime/spidermonkey
26-
# > ./download-engine.sh debug
26+
# > ./build-engine.sh debug
2727
#
2828
# If you get an error about missing "jsapi.h" while building the runtime,
2929
# something's gone wrong with the engine download.

0 commit comments

Comments
 (0)