mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Show whether MicroJIT is enabled in the version string
This commit is contained in:
parent
12283c58da
commit
726bdd4d35
2 changed files with 29 additions and 6 deletions
4
ruby.c
4
ruby.c
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue