1MRuby::Build.new do |conf| 2 toolchain :clang if ENV['CC'].include? "clang" 3 toolchain :gcc if ENV['CC'].include? "gcc" 4 5 # C++ project needs this. Without this, mruby exception does not 6 # properly destroy C++ object allocated on stack. 7 conf.enable_cxx_exception 8 9 conf.build_dir = ENV['BUILD_DIR'] 10 11 # include the default GEMs 12 conf.gembox 'default' 13 conf.gem :core => 'mruby-eval' 14end 15