summaryrefslogtreecommitdiffhomepage
path: root/build_config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'build_config.rb')
-rw-r--r--build_config.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/build_config.rb b/build_config.rb
index 795251486..3408f19a1 100644
--- a/build_config.rb
+++ b/build_config.rb
@@ -83,6 +83,31 @@ MRuby::Build.new do |conf|
# conf.enable_bintest
end
+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 'default'
+
+ # C compiler settings
+ conf.cc.defines = %w(ENABLE_DEBUG)
+
+ # Generate mruby debugger command (require mruby-eval)
+ conf.gem :core => "mruby-bin-debugger"
+
+ # bintest
+ # conf.enable_bintest
+end
+
# Define cross build settings
# MRuby::CrossBuild.new('32bit') do |conf|
# toolchain :gcc