Skip to content
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

Recognize _initialize in wasm-tools component new #1747

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

alexcrichton
Copy link
Member

This commit implements recognition of the _initialize function from WASIp1 in the componentization process of wasm-tools component new. This additionally corresponds to the same function in the proposed BuildTargets.md. This is implemented by having a small core wasm module which is just an import and a start section get instantiated at the end of a component to run _initialize before all other exports.

This commit implements recognition of the `_initialize` function from
WASIp1 in the componentization process of `wasm-tools component new`.
This additionally corresponds to the same function in the proposed
[BuildTargets.md](WebAssembly/component-model#378).
This is implemented by having a small core wasm module which is just an
import and a `start` section get instantiated at the end of a component
to run `_initialize` before all other exports.
@alexcrichton alexcrichton added this pull request to the merge queue Aug 29, 2024
Merged via the queue into bytecodealliance:main with commit 108c37d Aug 29, 2024
29 checks passed
@alexcrichton alexcrichton deleted the run-initialize branch August 29, 2024 16:56
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