Open Zentendo opened 2 years ago
I think they’d need to be defined as LDFLAGS. I’d actually like to do this so we can have multiple emulators running on one webpage, and I hope to file a patch tomorrow changing the makefile and JavaScript loader to use modularized retroarch.
Where do you define options for Emscripten such as
-s EXPORT_ES6=1
and-s MODULARIZE=1
for the final WASM/JS output ofdist-cores.sh
? I've defined them here: https://github.com/libretro/RetroArch/blob/master/Makefile.emscripten#L9But the final output JS still does not export ES6 modules, causing you to use very legacy style 1990's style script tags instead of module loading, not properly supporting async, and I get these compiler warnings during linking:
Flag here: https://github.com/emscripten-core/emscripten/blob/main/src/settings.js#L1176