-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededwasm-sandbox
Description
Somehow, the lto optimizations are breaking the wasm build.
This might be related to limits of the stack being reached.
RuntimeError: Out of bounds memory access (evaluating 'instance.exports')
at vs.templ.js.wasm-function[_GLOBAL__sub_I_pugixml.cpp]
at vs.templ.js.wasm-function[__wasm_call_ctors]
at vs.templ.js.wasm-function[_start]
at start (node:wasi:1023:26)
at /archive/shared/projects/vs.templ/build/vs.templ.js:49:11
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededwasm-sandbox