emscripten-core / emscripten

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

Add new simple export mechanism #22977

Open sbc100 opened 1 week ago

sbc100 commented 1 week ago

This change adds a new -sEXPORT setting that can by used to export any type of symbols (see #8380)

It also includes a new -sMANGLED_SYMBOLS setting which default to true in order to not break backwards compatibility.

Both these new settings are currently experimental and using -sEXPORT currently disables -sMANGLED_SYMBOLS by default.

sbc100 commented 1 week ago

@brendandahl FYI still WIP

brendandahl commented 1 week ago

Looks good so far! I imagine this will bitrot very quickly. I'm happy to look into failures next week if you want help.

sbc100 commented 1 week ago

Looks good so far! I imagine this will bitrot very quickly. I'm happy to look into failures next week if you want help. Looks good so far! I imagine this will bitrot very quickly. I'm happy to look into failures next week if you want help. I think I'd like to split this up into two parts:

  1. New experimental flag: -sMANGLE_SYMBOLS=0
  2. New experimental -sEXPORT flag that implies -sMANGLE_SYMBOLS=0