Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Jul 30, 2023
1 parent 18f13ad commit 0550e7d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/libdl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# What's this

A simple dlopen/dlsym implementation backed by host functions.

# Prerequisites

Build toywasm with the following options to include the host functions.
```
TOYWASM_ENABLE_DYLD=ON
TOYWASM_ENABLE_DYLD_DLFCN=ON
```

Also, enable them with the `--dyld-dlfcn` runtime option.
```
toywasm --dyld --dyld-dlfcn
```
Or, via `dyld_options.enable_dlfcn` if you are using toywasm as a library.

0 comments on commit 0550e7d

Please sign in to comment.