Targeting wasm64?

Skip to first unread message

Jeru Sanders

Jun 2, 2024, 10:04:23 PMJun 2
to skia-discuss
How can libskia.a be built targeting wasm64/memory64?

Adding "-s MEMORY64=1" to the extra_cflags in the gn args seems to mostly work. But at the link phase it complains about needing -mwasm64

If you hack in -mwasm64, then it complains about not being able to mix 32bit and 64bit wasm files. Specifically about skia/third_party/externals/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libz.a(adler32c.o)

It seems like this would work if I kept hacking the build scripts, but, is there a better way?

Brian Osman

Jun 4, 2024, 9:26:19 AMJun 4
I think continuing to hack is the answer, unfortunately. I don't believe we've ever worked on doing a wasm64 target (just wasm32), so none of the build scripts have those options.

You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages