1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Disable YJIT by default if MJIT_FORCE_ENABLE is on

Compile time flag seems pretty forceful, so let MJIT turn on by default
if it is used.
This commit is contained in:
Aaron Patterson 2021-09-08 09:47:00 -07:00 committed by Alan Wu
parent ea453acf59
commit 9d5beb6fde

3
ruby.c
View file

@ -233,8 +233,9 @@ cmdline_options_init(ruby_cmdline_options_t *opt)
opt->features.set = DEFAULT_FEATURES;
#ifdef MJIT_FORCE_ENABLE /* to use with: ./configure cppflags="-DMJIT_FORCE_ENABLE" */
opt->features.set |= FEATURE_BIT(jit);
#endif
#else
opt->features.set |= FEATURE_BIT(yjit);
#endif
return opt;
}