summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2021-09-08 10:21:03 -0700
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:40 -0400
commitb78c50d800a5afca84a26a7a14b0ecbb04f838e8 (patch)
tree93da4470d5aacb291d5e2dd5f952d16e7173e77c /ruby.c
parent9d5beb6fde45c8182d8dc6b8baade2fa5a6f4e07 (diff)
Don't check MJIT if it's not enabled
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 22cfeace1e..d722489aca 100644
--- a/ruby.c
+++ b/ruby.c
@@ -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))) {