Skip to content

Commit 3ddb5f9

Browse files
rwstaunerk0kubun
authored andcommitted
Allow --jit to mean zjit if yjit isn't defined
The --help output suggests this should work as ZJIT is labeled as the default if YJIT isn't enabled.
1 parent 7b1e0a6 commit 3ddb5f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ proc_long_options(ruby_cmdline_options_t *opt, const char *s, long argc, char **
14731473
ruby_verbose = Qtrue;
14741474
}
14751475
else if (strcmp("jit", s) == 0) {
1476-
#if USE_YJIT
1476+
#if USE_YJIT || USE_ZJIT
14771477
FEATURE_SET(opt->features, FEATURE_BIT(jit));
14781478
#else
14791479
rb_warn("Ruby was built without JIT support");

0 commit comments

Comments
 (0)