summaryrefslogtreecommitdiff
path: root/mjit.h
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-18 12:45:54 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-18 12:45:54 +0000
commit053cdaf7eec47c4481f24bb827c46f3f7601135f (patch)
tree78b067f215a9ea895efbb95adc6119d20d18b6e2 /mjit.h
parent4bc16691279e98ecdb3e19ff23902be671d46307 (diff)
ruby.c: accept --disable-jit option
by promoting jit to feature flag. mjit.h: update comment about mjit_opts.on test_rubyoptions.rb: add test for switching JIT enablement "--jit" flag usage may be deprecated later, but not discussed yet. [Feature #14878] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.h')
-rw-r--r--mjit.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mjit.h b/mjit.h
index a2a085c720..4f38ed90a7 100644
--- a/mjit.h
+++ b/mjit.h
@@ -27,7 +27,9 @@ enum rb_mjit_iseq_func {
/* MJIT options which can be defined on the MRI command line. */
struct mjit_options {
- char on; /* flag of MJIT usage */
+ /* Converted from "jit" feature flag to tell the enablement
+ information to ruby_show_version(). */
+ char on;
/* Save temporary files after MRI finish. The temporary files
include the pre-compiled header, C code file generated for ISEQ,
and the corresponding object file. */