path: root/mjit.h
diff options
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-18 12:45:54 (GMT)
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-18 12:45:54 (GMT)
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:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.h')
1 files changed, 3 insertions, 1 deletions
diff --git a/mjit.h b/mjit.h
index a2a085c..4f38ed9 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. */