We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I run:
zig build-lib src/main.zig -target wasm32-freestanding
It produces a "libmain.a" file instead of a .wasm file.
Zig version: 0.9.0-dev.453+7ef854682
The text was updated successfully, but these errors were encountered:
You have to append -dynamic to create a dynamic library.
-dynamic
You can read more about this change here: https://ziglang.org/download/0.8.0/release-notes.html#WebAssembly-Support and here #8837.
Sorry, something went wrong.
When using a build.zig file, is it possible to only generate the wasm file, without the .o and .so files?
Builder.addDynamicLibrary
No branches or pull requests
When I run:
It produces a "libmain.a" file instead of a .wasm file.
Zig version: 0.9.0-dev.453+7ef854682
The text was updated successfully, but these errors were encountered: