mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Don't check MJIT if it's not enabled
This commit is contained in:
parent
9d5beb6fde
commit
b78c50d800
1 changed files with 2 additions and 0 deletions
2
ruby.c
2
ruby.c
|
@ -1842,10 +1842,12 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (opt->features.set & FEATURE_BIT(yjit)) {
|
if (opt->features.set & FEATURE_BIT(yjit)) {
|
||||||
|
#if USE_MJIT
|
||||||
if (opt->mjit.on) {
|
if (opt->mjit.on) {
|
||||||
rb_warn("MJIT and YJIT cannot both be enabled at the same time. Exiting");
|
rb_warn("MJIT and YJIT cannot both be enabled at the same time. Exiting");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
rb_yjit_init(&opt->yjit);
|
rb_yjit_init(&opt->yjit);
|
||||||
}
|
}
|
||||||
if (opt->dump & (DUMP_BIT(version) | DUMP_BIT(version_v))) {
|
if (opt->dump & (DUMP_BIT(version) | DUMP_BIT(version_v))) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue