summaryrefslogtreecommitdiffstats
path: root/third-party/build_config.rb
blob: 86dd8152e0a045178c62c1349f3d25d3865e6e48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
MRuby::Build.new do |conf|
  toolchain :clang if ENV['CC'].include? "clang"
  toolchain :gcc if ENV['CC'].include? "gcc"

  # C++ project needs this.  Without this, mruby exception does not
  # properly destroy C++ object allocated on stack.
  conf.enable_cxx_exception

  conf.build_dir = ENV['BUILD_DIR']

  # include the default GEMs
  conf.gembox 'default'
  conf.gem :core => 'mruby-eval'
end