We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ddc335 commit 1e22d1aCopy full SHA for 1e22d1a
core/shared/platform/darwin/platform_internal.h
@@ -46,6 +46,8 @@ extern "C" {
46
#define BH_PLATFORM_DARWIN
47
#endif
48
49
+#define BH_HAS_DLFCN 1
50
+
51
/* Stack size of applet threads's native part. */
52
#define BH_APPLET_PRESERVED_STACK_SIZE (32 * 1024)
53
samples/native-lib/README.md
@@ -45,11 +45,20 @@ will be generated.
45
## Run workload
+### Linux
```bash
cd build
./iwasm --native-lib=libtest_add.so --native-lib=libtest_sqrt.so wasm-app/test.wasm
```
54
55
+### macOS
56
57
+```bash
58
+cd build
59
+./iwasm --native-lib=libtest_add.dylib --native-lib=libtest_sqrt.dylib wasm-app/test.wasm
60
+```
61
62
The output is:
63
64
0 commit comments