emscripten
emscripten copied to clipboard
Use exported memory when building a MAIN_MODULE. NFC
Side modules import the memory but the main module should export it.
Marking as draft since I think this might be more complex that i thought.
I'm think as long as we are buiding the main module as PIC the linker cannot create the memory since it doesn't know how much space it needs to use.