From 0550e7d349884aafdd7fa8f7a13c82fa5e9bdea9 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sun, 30 Jul 2023 19:24:20 +0900 Subject: [PATCH] readme --- examples/libdl/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/libdl/README.md diff --git a/examples/libdl/README.md b/examples/libdl/README.md new file mode 100644 index 00000000..850d59fc --- /dev/null +++ b/examples/libdl/README.md @@ -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.