You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It likes RubyGems for CRuby, but while RubyGems is dynamic, mrbgems is static.
mrbgems is used during building mruby, unlike RubyGems, which is used after ruby is installed.
In mrubys root directory there is a file called build_config.rb that file is where you have your build information. Including the gems you want to add as well as additional information such as included header
files and libraries to be linked if your creating your gem with C extensions. Inside the build_config.rb
You can add this code in to add in your gems.
conf.gem'path/to/gem'
If you want to include an include path you do it by writing the code below in your gem specification inside
your projects mrbgem.rake file.
conf.ccdo |cc|
cc.include_paths=''end
Or you may run into a problem where the mruby.h can't be found in that case do this.