Skip to content

Commit bb39d5d

Browse files
authored
Update README.md.
1 parent 1044da7 commit bb39d5d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# Binaryen.NET
22
C# Bindings for the Binaryen WebAssembly toolchain.
33

4+
## Building
5+
- **If you only changed C# code:** The project automatically uses the pre-built native binaries from `runtimes/`, no manual compilation is needed.
6+
- **If you updated Binaryen itself:** Rebuild Binaryen as a shared library, then place the compiled binaries for each target runtime into the `runtimes/` folder.
7+
8+
You can build the C# project by running:
9+
```bash
10+
dotnet build
11+
```
12+
from the directory containing `Binaryen.NET.sln`.
13+
14+
To build or update the native Binaryen library (`libbinaryen`), follow the instructions in the [Binaryen repository](https://github.com/WebAssembly/binaryen).
15+
416
## Samples
517

618
### Generating IR -> WAT

0 commit comments

Comments
 (0)