mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Report unknown --ujit-* options
This commit is contained in:
parent
b7f93e81df
commit
a14015e9b5
2 changed files with 5 additions and 0 deletions
4
ruby.c
4
ruby.c
|
@ -1041,6 +1041,10 @@ setup_ujit_options(const char *s, struct rb_ujit_options *ujit_opt)
|
|||
if (opt_match_noarg(s, l, "stats")) {
|
||||
ujit_opt->gen_stats = true;
|
||||
}
|
||||
else {
|
||||
rb_raise(rb_eRuntimeError,
|
||||
"invalid ujit option `%s' (--help will show valid ujit options)", s);
|
||||
}
|
||||
}
|
||||
|
||||
#if USE_MJIT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue