-
Notifications
You must be signed in to change notification settings - Fork 121
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
unable to build for web with zig 0.13.0 #108
Comments
I am able to reproduce this, but I am unsure what causes this and I do not think it is an issue on our end |
I'm having same error even though I'm not compiling to web, but to linux-x86_64. On linux-x86_64 compiling to Windows works fine. |
The original raylib c project use zig.build to build their project so it should be failing for them too, and seems they already closed all wasm zig related issues. |
When I compile for Linux on my MacBook, I only get an error, because it can't find a |
I was able to build for web with the latest Zig master (0.14.0-dev.1694+3b465ebec). If this was a zig regression it's been resolved. |
Ok, I can't repro this anymore on 0.13 either. Maybe other fixes had an impact. I'm closing this for now. |
I'm getting Simple repro example: var foo = std.ArrayList(i32).init(std.heap.c_allocator);
defer foo.deinit();
try foo.append(7); (In a project created by the template. Build for wasm and run in a browser. I can make an example repo if needed.) The same fix as above worked for me (adding |
Done! |
attempting to build the project created by project_setup.sh with the provided command gives the following output
it works fine with 0.12.0
another unrelated issue is when using the c_allocator with wasm built with 0.12.0 there is this error:
which I was able to fix by adding
-sUSE_OFFSET_CONVERTER
in emcc.zig after line 109.The text was updated successfully, but these errors were encountered: