summaryrefslogtreecommitdiffhomepage
path: root/target
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-06-27 17:38:24 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 16:21:22 +0900
commit639946a006c29f648551512af8aa0bb0cd969412 (patch)
tree772fd60110e0492a42df513106d9e150b932645c /target
parentfb5e8ab6d5fa9b7ca08c7b66ac8038940534db70 (diff)
downloadmruby-639946a006c29f648551512af8aa0bb0cd969412.tar.gz
mruby-639946a006c29f648551512af8aa0bb0cd969412.zip
Enable method cache by default.
Introduced `MRB_NO_METHOD_CACHE` which is inverse of `MRB_METHOD_CACHE` that should be enabled intestinally. In addition, the default cache is made bigger (128 -> 256).
Diffstat (limited to 'target')
-rw-r--r--target/appveyor.rb2
-rw-r--r--target/host-gprof.rb1
-rw-r--r--target/travis.rb2
3 files changed, 2 insertions, 3 deletions
diff --git a/target/appveyor.rb b/target/appveyor.rb
index 2336935c9..6a8dbbf4a 100644
--- a/target/appveyor.rb
+++ b/target/appveyor.rb
@@ -10,7 +10,7 @@ MRuby::Build.new('full-debug') do |conf|
# include all core GEMs
conf.gembox 'full-core'
- conf.cc.defines += %w(MRB_GC_STRESS MRB_METHOD_CACHE MRB_ENABLE_DEBUG_HOOK)
+ conf.cc.defines += %w(MRB_GC_STRESS MRB_ENABLE_DEBUG_HOOK)
setup_option(conf)
conf.enable_test
diff --git a/target/host-gprof.rb b/target/host-gprof.rb
index c8a2f3b13..31b952920 100644
--- a/target/host-gprof.rb
+++ b/target/host-gprof.rb
@@ -5,7 +5,6 @@ MRuby::Build.new do |conf|
# include the GEM box
conf.gembox 'full-core'
- conf.cc.defines = %w(MRB_METHOD_CACHE)
conf.cc.flags << '-pg'
conf.linker.flags << '-pg'
diff --git a/target/travis.rb b/target/travis.rb
index f4bef0a52..b8b04da18 100644
--- a/target/travis.rb
+++ b/target/travis.rb
@@ -5,7 +5,7 @@ MRuby::Build.new('full-debug') do |conf|
# include all core GEMs
conf.gembox 'full-core'
conf.cc.flags += %w(-Werror=declaration-after-statement)
- conf.cc.defines += %w(MRB_GC_STRESS MRB_METHOD_CACHE MRB_ENABLE_DEBUG_HOOK)
+ conf.cc.defines += %w(MRB_GC_STRESS MRB_ENABLE_DEBUG_HOOK)
conf.enable_test
end