Skip to content

Commit 29756f7

Browse files
committed
Update Building.md
1 parent 96a626e commit 29756f7

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

wasm/docs/contributor/Building.md

+18-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

33
## Prerequisites
44

5+
### Required dependencies
6+
57
- Python 3 (required by `mx`)
6-
- GIT (to download, update, and locate repositories)
7-
- JDK 11+
8-
- emscripten or wasi-sdk for translating C files
8+
- `git` (to download, update, and locate repositories)
9+
- [JDK 21+](https://www.oracle.com/java/technologies/downloads/)
10+
11+
### Optional dependencies
12+
- [WABT (WebAssembly Binary Toolkit)](https://github.com/WebAssembly/wabt) for translating _.wat_ files
13+
- [Emscripten](https://emscripten.org/docs/getting_started/downloads.html) or [WASI SDK](https://github.com/WebAssembly/wasi-sdk) for translating C files
914

1015
## Building
1116

@@ -37,7 +42,16 @@ We summarize the basic steps below:
3742

3843
5. Build the project:
3944
```bash
40-
$ mx --dy /truffle,/compiler build
45+
$ mx --dynamicimports /compiler build
4146
```
4247

4348
These steps will build the `wasm.jar` file in the `mxbuild/dists/jdk<version>` directory, which contains GraalWasm.
49+
50+
## Testing
51+
52+
To run a _.wasm_ file, you can use the following command:
53+
```bash
54+
$ mx --dynamicimports /compiler wasm somefile.wasm
55+
```
56+
57+
For instructions how to run the tests, see [Tests and Benchmarks](TestsAndBenchmarks.md).

0 commit comments

Comments
 (0)