emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.91k stars 3.32k forks source link

Add test for `GLOBAL_BASE` and `SIDE_MODULE` error message. NFC #23029

Closed sbc100 closed 1 day ago

sbc100 commented 6 days ago

These two options are not compatible, and GLOBAL_BASE is currently just ignored in this mode.

sbc100 commented 6 days ago

Oops it turns out the GLOBAL_BASE does work with MAIN_MODULE since it gets embedded in the JS file.

Updated this RP to just a test for the existing error for SIDE_MODULE.