yomaytk opened PR #11155 from yomaytk:fix-examples-c to bytecodealliance:main:
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->This PR fixed the bug in
examples/threads.c, and removed the cargo build command for all examples/*.c files in the same manner as https://github.com/bytecodealliance/wasmtime/pull/11132.
examples/threads.watimports thehellofunction with no arguments, but in threads.c the imported function was defined to take one argument (i32 type). That occurred the error> Error instantiating module!\n, so I fixed the signature and updated it to output the thread ID.
yomaytk requested pchickey for a review on PR #11155.
yomaytk requested wasmtime-core-reviewers for a review on PR #11155.
pchickey submitted PR review:
Thanks!
pchickey merged PR #11155.
Last updated: Dec 06 2025 at 06:05 UTC