I have been compiling JUCE to WASM for a project I have been working on.
I found 2 issues that i needed to patch which are easy fixes.
Let me know if I should put in a pull request to fix these.
- in JUCE/modules/juce_core/native/juce_SystemStats_wasm.cpp at 501c07674e1ad693085a7e7c398f205c2677f5da · juce-framework/JUCE · GitHub
the function emscripten_get_now() is used on line 86.
to use this function, this file needs to include the emscripten.h - in JUCE/modules/juce_core/native/juce_ThreadPriorities_native.h at 501c07674e1ad693085a7e7c398f205c2677f5da · juce-framework/JUCE · GitHub
line 69 should also have || JUCE_WASM
with both of these updates, JUCE can be easily compiled to WASM (although certain functions like those that use multithreading wont work right away)
