Skip to content

Conversation

@yamt
Copy link
Collaborator

@yamt yamt commented Oct 6, 2022

No description provided.


```bash
cd build
./iwasm --native-lib=libtest_add.dylib --native-lib=libtest_sqrt.dylib wasm-app/test.wasm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR #1546 changes L52 as:
./iwasm --native-lib=./libtest_add.so --native-lib=./libtest_sqrt.so wasm-app/test.wasm
Shall we change this line to:
./iwasm --native-lib=./libtest_add.dylib --native-lib=./libtest_sqrt.dylib wasm-app/test.wasm

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm sure this works without ./ here on my env. (x86-64 macOS)

spacetanuki% ./iwasm --native-lib=libtest_add.dylib --native-lib=libtest_sqrt.dylib wasm-app/test.wasm
Hello World!
10 + 20 = 30
sqrt(10, 20) = 500
spacetanuki% 

@wenyongh wenyongh merged commit 1e22d1a into bytecodealliance:main Oct 7, 2022
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…e#1558)

- core/shared/platform/darwin/platform_internal.h: macOS has dlopen
- samples/native-lib/README.md: Mention macOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants