From d416a15c86f0641f5dda3d32c05a30fd5510ccf6 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Wed, 16 Jun 2021 14:02:41 +0200 Subject: [PATCH] Warn rather than raise when --yjit-stats is ignored --- yjit_iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yjit_iface.c b/yjit_iface.c index 6ed1587560..b255a44221 100644 --- a/yjit_iface.c +++ b/yjit_iface.c @@ -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