mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
Avoid warning --jit when only YJIT is enabled
This commit is contained in:
parent
75f4a687ed
commit
e282d7b880
1 changed files with 3 additions and 3 deletions
6
ruby.c
6
ruby.c
|
@ -1421,10 +1421,10 @@ proc_long_options(ruby_cmdline_options_t *opt, const char *s, long argc, char **
|
||||||
ruby_verbose = Qtrue;
|
ruby_verbose = Qtrue;
|
||||||
}
|
}
|
||||||
else if (strcmp("jit", s) == 0) {
|
else if (strcmp("jit", s) == 0) {
|
||||||
#if !USE_RJIT
|
#if USE_YJIT || USE_RJIT
|
||||||
rb_warn("Ruby was built without JIT support");
|
|
||||||
#else
|
|
||||||
FEATURE_SET(opt->features, FEATURE_BIT(jit));
|
FEATURE_SET(opt->features, FEATURE_BIT(jit));
|
||||||
|
#else
|
||||||
|
rb_warn("Ruby was built without JIT support");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else if (is_option_with_optarg("rjit", '-', true, false, false)) {
|
else if (is_option_with_optarg("rjit", '-', true, false, false)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue