summaryrefslogtreecommitdiffhomepage
path: root/target
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-08-05 07:52:15 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 16:21:26 +0900
commit1eb71b008f3bef36449007aec239119e74314dac (patch)
tree30220e28a61c97881cf3335e689d871a5aa3943b /target
parent84a68ca5aeb5fa29543fb23eeda717bcb8a131fe (diff)
downloadmruby-1eb71b008f3bef36449007aec239119e74314dac.tar.gz
mruby-1eb71b008f3bef36449007aec239119e74314dac.zip
Change default boxing scheme from `MRB_NO_BOXING`.
On 64bit platforms: `MRB_NAN_BOXING` On 32bit platforms: `MRB_WORD_BOXING` On debugging: `MRB_NO_BOXING`
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"