-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wasi-sdk-pthread.cmake: add --import-memory #297
Conversation
Shall we also add |
i don't think there is a good single value for |
i marked this a draft because this needs llvm >=16. |
I am also wondering if we should rename this file |
i don't think so as what this provides is pthread. |
this is ready as we now ship llvm 16. |
wasi-sdk-pthread.cmake
Outdated
@@ -9,6 +9,11 @@ set(CMAKE_SYSTEM_PROCESSOR wasm32) | |||
set(triple wasm32-wasi-threads) | |||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") | |||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") | |||
# wasi-threads requries --import-memory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# wasi-threads requries --import-memory. | |
# wasi-threads requires --import-memory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed. thank you.
4bd8f7e
to
99a0681
Compare
wasi requires the memory exported as "memory". certain runtimes actually requires it. (eg. wasmtime) cf. WebAssembly/wasi-sdk#297 also, bump the wasi-sdk version because this doesn't work with an old wasm-ld.
wasi requires the memory exported as "memory". certain runtimes actually requires it. (eg. wasmtime) cf. WebAssembly/wasi-sdk#297 also, bump the wasi-sdk version because this doesn't work with an old wasm-ld.
No description provided.