diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2021-09-08 10:21:03 -0700 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:40 -0400 |
commit | b78c50d800a5afca84a26a7a14b0ecbb04f838e8 (patch) | |
tree | 93da4470d5aacb291d5e2dd5f952d16e7173e77c /ruby.c | |
parent | 9d5beb6fde45c8182d8dc6b8baade2fa5a6f4e07 (diff) |
Don't check MJIT if it's not enabled
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1842,10 +1842,12 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt) } #endif if (opt->features.set & FEATURE_BIT(yjit)) { +#if USE_MJIT if (opt->mjit.on) { rb_warn("MJIT and YJIT cannot both be enabled at the same time. Exiting"); exit(1); } +#endif rb_yjit_init(&opt->yjit); } if (opt->dump & (DUMP_BIT(version) | DUMP_BIT(version_v))) { |