summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
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))) {