diff options
author | Alan Wu <[email protected]> | 2020-10-05 06:56:33 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:24 -0400 |
commit | 726bdd4d35861f0373d7508ab4ac7b2c781edf51 (patch) | |
tree | 89f7a907fbd13cbd5106f54d6cacb00a4fa7c3e6 /ruby.c | |
parent | 12283c58dab63eb9f8e916a8647758260a3e699b (diff) |
Show whether MicroJIT is enabled in the version string
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1803,6 +1803,8 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt) */ rb_warning("-K is specified; it is for 1.8 compatibility and may cause odd behavior"); + if (opt->features.set & FEATURE_BIT(ujit)) + rb_ujit_init(); #if USE_MJIT if (opt->features.set & FEATURE_BIT(jit)) { opt->mjit.on = TRUE; /* set mjit.on for ruby_show_version() API and check to call mjit_init() */ @@ -1869,8 +1871,6 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt) /* Using TMP_RUBY_PREFIX created by ruby_init_loadpath(). */ mjit_init(&opt->mjit); #endif - if (opt->features.set & FEATURE_BIT(ujit)) - rb_ujit_init(); Init_ruby_description(); Init_enc(); |