summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-06 16:03:14 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-06 16:03:14 +0000
commit75eff5002d3e8baab2af0df944d5cadc2d6aa0c3 (patch)
tree0779914a73ad185d90435ebb2ee10c59d9ce135b /ruby.c
parent54de00798c9949cb5f27bed735f3ed6d6e0eddb9 (diff)
downloadruby-75eff5002d3e8baab2af0df944d5cadc2d6aa0c3.tar.gz
ruby.c: add MJIT_FORCE_ENABLE macro
to always enable MJIT for testing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index b185b98a18..79fb6d1635 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1607,7 +1607,9 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
ruby_gc_set_params(opt->safe_level);
ruby_init_loadpath_safe(opt->safe_level);
+#ifndef MJIT_FORCE_ENABLE /* to use with: ./configure cppflags="-DMJIT_FORCE_ENABLE" */
if (opt->mjit.on)
+#endif
/* Using TMP_RUBY_PREFIX created by ruby_init_loadpath_safe(). */
mjit_init(&opt->mjit);