1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Warn rather than raise when --yjit-stats is ignored

This commit is contained in:
Jean Boussier 2021-06-16 14:02:41 +02:00 committed by Alan Wu
parent f16ec70e4f
commit d416a15c86

View file

@ -1040,7 +1040,7 @@ rb_yjit_init(struct rb_yjit_options *options)
#if !RUBY_DEBUG
if(rb_yjit_opts.gen_stats) {
rb_raise(rb_eRuntimeError, "--yjit-stats requires that Ruby is compiled with CPPFLAGS='-DRUBY_DEBUG=1'");
rb_warning("--yjit-stats requires that Ruby is compiled with CPPFLAGS='-DRUBY_DEBUG=1'");
}
#endif