diff options
Diffstat (limited to 'target/host-debug.rb')
| -rw-r--r-- | target/host-debug.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/target/host-debug.rb b/target/host-debug.rb new file mode 100644 index 000000000..4e89d162c --- /dev/null +++ b/target/host-debug.rb @@ -0,0 +1,24 @@ +MRuby::Build.new('host-debug') do |conf| + # load specific toolchain settings + + # Gets set by the VS command prompts. + if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR'] + toolchain :visualcpp + else + toolchain :gcc + end + + enable_debug + + # include the default GEMs + conf.gembox 'full-core' + + # C compiler settings + conf.cc.defines = %w(MRB_ENABLE_DEBUG_HOOK) + + # Generate mruby debugger command (require mruby-eval) + conf.gem :core => "mruby-bin-debugger" + + # bintest + # conf.enable_bintest +end |
