Skip to content
  • Ryan Lopopolo's avatar
    b5662c87
    Allow external definition of MRB_API macro · b5662c87
    Ryan Lopopolo authored
    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.
    b5662c87
    Allow external definition of MRB_API macro
    Ryan Lopopolo authored
    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.
Loading