katzer/mruby-r3

Error MRuby::Gem::LinkerConfig:0x000055bc9ff3df70#defines

Closed this issue · 1 comments

Hey, I have a problem adding this gem using mruby cli.

In build_config, I've added

  conf.gem :git => 'https://github.com/katzer/mruby-r3'

And I get
NoMethodError: undefined method `defines' for #MRuby::Gem::LinkerConfig:0x000055bc9ff3df70

Fixed

For others, if you encounter this problem using mruby-cli

just add this at the top of build_config.rb

class MRuby::Gem::LinkerConfig
  def defines
    @defines ||= []
  end
end