-
Notifications
You must be signed in to change notification settings - Fork 0
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
lto optimization not usable for wasm #18
Comments
For context:
builds without issues, but the resulting
are being passed, but I was unable to find a way to increase the stack size and see if that was the cause. |
Just tested the same setup without linking anything from my code or the upstream libraries of this project. So, just the basic libraries linked by default.
|
Well, I am really failing to make it work as I would expect. I made few tests using zig 14-dev standalone, without meson, just the command to compile and link. Very simple c++ file:
And a c one:
I also tested C++ using the C code, no libc++ and it works without I also noticed that the |
Issues notified upstream @ ziglang/zig#22629 |
Somehow, the lto optimizations are breaking the wasm build.
This might be related to limits of the stack being reached.
The solution would be to ask for a bigger stack, but I don't know how to do that in
zig cc
and the usual-stack-size=xxxx
is not working.If implemented, lto optimization would result in a blob going from 6.5MB to 4.4MB which is very substantial.
The text was updated successfully, but these errors were encountered: