summaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2022-10-24 09:20:44 -0700
committer<[email protected]>2022-10-24 12:20:44 -0400
commit120b747b7df25722c982ff4ba0f8be9a1463bd78 ()
tree15798f8657eabb2a9a8faa5c8dcbcb94cba00c9a /version.c
parent841be6392ef85a02ab8ce7f323b990d6bbcc09cb (diff)
YJIT: Lazily enable YJIT after prelude (#6597)
* YJIT: Lazily enable YJIT after prelude * Update dependencies * Use a bit field for opt->yjit
Notes: Merged-By: maximecb <[email protected]>
-rw-r--r--version.c13
1 files changed, 10 insertions, 3 deletions
@@ -9,6 +9,7 @@
**********************************************************************/
#include "ruby/ruby.h"
#include "version.h"
#include "vm_core.h"
@@ -121,13 +122,19 @@ Init_version(void)
}
#if USE_MJIT
-#define MJIT_OPTS_ON mjit_opts.on
#else
#define MJIT_OPTS_ON 0
#endif
void
-Init_ruby_description(void)
{
VALUE description;
@@ -135,7 +142,7 @@ Init_ruby_description(void)
rb_dynamic_description = ruby_description_with_mjit;
description = MKSTR(description_with_mjit);
}
- else if (rb_yjit_enabled_p()) {
rb_dynamic_description = ruby_description_with_yjit;
description = MKSTR(description_with_yjit);
}