Skip to content

Commit

Permalink
Avoid warning --jit when only YJIT is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Dec 13, 2023
1 parent 75f4a68 commit e282d7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ruby.c
Expand Up @@ -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)) {
Expand Down

0 comments on commit e282d7b

Please sign in to comment.