mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
b5662c87c8
When building WebAssembly targets with clang (e.g. wasm32-unknown-unknown), all
symbols are hidden by default. To export a symbol, it must be marked with
__attribute__((visibility(default)))
Rather than detecting this exotic target in mruby, allow MRB_API to be defined
externally.