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:
parent
ea453acf59
commit
9d5beb6fde
1 changed files with 2 additions and 1 deletions
3
ruby.c
3
ruby.c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue