mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Warn when trying to use YJIT in --disable-jit-support builds
This commit is contained in:
parent
ff863f3818
commit
95e337f815
1 changed files with 4 additions and 0 deletions
4
ruby.c
4
ruby.c
|
@ -1505,7 +1505,11 @@ proc_options(long argc, char **argv, ruby_cmdline_options_t *opt, int envopt)
|
|||
#endif
|
||||
}
|
||||
else if (strcmp("yjit", s) == 0 || setup_yjit_options(s, &opt->yjit)) {
|
||||
#if USE_MJIT
|
||||
FEATURE_SET(opt->features, FEATURE_BIT(yjit));
|
||||
#else
|
||||
rb_warn("Ruby was built without JIT support");
|
||||
#endif
|
||||
}
|
||||
else if (strcmp("yydebug", s) == 0) {
|
||||
if (envopt) goto noenvopt_long;
|
||||
|
|
Loading…
Add table
Reference in a new issue