summaryrefslogtreecommitdiffhomepage
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rw-r--r--target/boxing.rb3
-rw-r--r--target/host-debug.rb2
2 files changed, 4 insertions, 1 deletions
diff --git a/target/boxing.rb b/target/boxing.rb
index 6720a3b50..509c0d4b6 100644
--- a/target/boxing.rb
+++ b/target/boxing.rb
@@ -5,6 +5,9 @@ end
MRuby::Build.new('no_boxing') do |conf|
toolchain :gcc
+ conf.compilers.each do |c|
+ c.defines += %w(MRB_NO_BOXING)
+ end
conf.gembox 'default'
conf.enable_test
end
diff --git a/target/host-debug.rb b/target/host-debug.rb
index 44eccacf6..423286888 100644
--- a/target/host-debug.rb
+++ b/target/host-debug.rb
@@ -14,7 +14,7 @@ MRuby::Build.new('host-debug') do |conf|
conf.gembox 'full-core'
# C compiler settings
- conf.cc.defines = %w(MRB_ENABLE_DEBUG_HOOK)
+ conf.cc.defines = %w(MRB_ENABLE_DEBUG_HOOK MRB_NO_BOXING)
# Generate mruby debugger command (require mruby-eval)
conf.gem :core => "mruby-bin-debugger"