Skip to content

Commit a51a7d5

Browse files
committed
readme
1 parent 18f13ad commit a51a7d5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

examples/libdl/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# What's this
2+
3+
A simple dlopen/dlsym implementation backed by host functions.
4+
5+
# Prerequisites
6+
7+
Build toywasm with the following options to include the host functions.
8+
```
9+
TOYWASM_ENABLE_DYLD=ON
10+
TOYWASM_ENABLE_DYLD_DLFCN=ON
11+
```
12+
13+
Also, enable them with the `--dyld-dlfcn` runtime option.
14+
```
15+
toywasm --dyld --dyld-dlfcn
16+
```
17+
or, via `dyld_options.enable_dlfcn` if you are using toywasm as a library.

0 commit comments

Comments
 (0)