Skip to content

Conversation

@alexcrichton
Copy link
Collaborator

Closes #640

@pchickey
Copy link
Collaborator

Just to be clear: this change works because, by eliminating LDFLAGS += -Wl,--skip-wit-component in the build of components against this libc, wasi-sdk's linker will insert a wasi:cli/run@0.2.0#run export pointing to the libc _start symbol.

@alexcrichton
Copy link
Collaborator Author

Right yeah, although the --skip-wit-component bit is only related to tests in this repository so dosen't affect anyone else. Everyone else though will use the _start symbol like before to get that all hooked up right.

@alexcrichton alexcrichton merged commit bf675e4 into WebAssembly:main Nov 10, 2025
17 checks passed
@alexcrichton alexcrichton deleted the use-imports-not-command branch November 10, 2025 18:59
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.

libc.so exports wasi:cli/run@0.2.0#run, but it shouldn't

3 participants