-
Notifications
You must be signed in to change notification settings - Fork 811
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
New cmdline option wasmer create-exe --self-test
#3092
Comments
So running |
@epilys So we still need "--self-test", but that won't be hard because wasmer already throw errors on missing components? |
If we have |
I propose |
Okay, thanks @NobodyXu, we weren't sure what the motivation for this issue was. I'll discuss it further with @syrusakbary, we will get back to you. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Feel free to reopen the issue if it has been closed by mistake. |
Motivation
wasmer create-exe
requiresWASMER_DIR
to be set to the location of the Wasmer installation and it also requires at least compilercc
and linkerld
to be present.In case where cross compilation is required, it would also need
zig-cc
to be present.Proposed solution
I want to use
wasm create-exe
in cargo-bins/cargo-binstall#246 and havingwasm create-exe --self-test
that returns0
on success would perfectly fix this issue, not only forcargo-binstall
but also for other scripting usage ofwasm create-exe
.Alternatives
We can use
wasm create-exe
to compile a simple hello-world wasi program to verify that it is usable, but that requires a simple hello-world wasi to be embedded in the program and compiling this program might also take a lot of computation resource and make the program sluggish.Additional context
This feature request is first mentioned in #3053 (comment)
The text was updated successfully, but these errors were encountered: