2015-09-05 11:10:10 +02:00
|
|
|
MRuby::Build.new do |conf|
|
2020-09-02 16:02:10 +02:00
|
|
|
toolchain :clang if ENV['CC'].include? "clang"
|
|
|
|
toolchain :gcc if ENV['CC'].include? "gcc"
|
2015-09-05 11:10:10 +02:00
|
|
|
|
|
|
|
# C++ project needs this. Without this, mruby exception does not
|
2022-01-13 21:21:56 +01:00
|
|
|
# properly destroy C++ object allocated on stack.
|
2017-07-09 16:45:42 +02:00
|
|
|
conf.enable_cxx_exception
|
2015-09-05 11:10:10 +02:00
|
|
|
|
|
|
|
conf.build_dir = ENV['BUILD_DIR']
|
|
|
|
|
|
|
|
# include the default GEMs
|
|
|
|
conf.gembox 'default'
|
|
|
|
conf.gem :core => 'mruby-eval'
|
|
|
|
end
|