summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2023-12-13 00:05:11 -0800
committerTakashi Kokubun <[email protected]>2023-12-13 00:05:12 -0800
commite282d7b880c3ac394ad8d41bde858c4534fb3188 (patch)
treea890bdc48c2bba446554ef8e419d10f2e6e94260 /ruby.c
parent75f4a687ed54e3b1863ba1767c666a0bea809c8a (diff)
Avoid warning --jit when only YJIT is enabled
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ruby.c b/ruby.c
index db25e1bc33..da3fbf2d44 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1421,10 +1421,10 @@ proc_long_options(ruby_cmdline_options_t *opt, const char *s, long argc, char **
ruby_verbose = Qtrue;
}
else if (strcmp("jit", s) == 0) {
-#if !USE_RJIT
- rb_warn("Ruby was built without JIT support");
-#else
+#if USE_YJIT || USE_RJIT
FEATURE_SET(opt->features, FEATURE_BIT(jit));
+#else
+ rb_warn("Ruby was built without JIT support");
#endif
}
else if (is_option_with_optarg("rjit", '-', true, false, false)) {