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:
parent
ea453acf59
commit
9d5beb6fde
3
ruby.c
3
ruby.c
@ -233,8 +233,9 @@ cmdline_options_init(ruby_cmdline_options_t *opt)
|
|||||||
opt->features.set = DEFAULT_FEATURES;
|
opt->features.set = DEFAULT_FEATURES;
|
||||||
#ifdef MJIT_FORCE_ENABLE /* to use with: ./configure cppflags="-DMJIT_FORCE_ENABLE" */
|
#ifdef MJIT_FORCE_ENABLE /* to use with: ./configure cppflags="-DMJIT_FORCE_ENABLE" */
|
||||||
opt->features.set |= FEATURE_BIT(jit);
|
opt->features.set |= FEATURE_BIT(jit);
|
||||||
#endif
|
#else
|
||||||
opt->features.set |= FEATURE_BIT(yjit);
|
opt->features.set |= FEATURE_BIT(yjit);
|
||||||
|
#endif
|
||||||
return opt;
|
return opt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user