Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Targeting wasm64?

46 views
Skip to first unread message

Jeru Sanders

unread,
Jun 2, 2024, 10:04:23 PM6/2/24
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

unread,
Jun 4, 2024, 9:26:19 AM6/4/24
to skia-d...@googlegroups.com
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 skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/624cf481-4358-41fe-8d1c-6ad8f7448824n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages