From 21e58acef347bb3891262ab38ac211c8d877efd7 Mon Sep 17 00:00:00 2001 From: Noah Gibbs Date: Fri, 1 Oct 2021 13:45:02 +0100 Subject: Don't enable YJIT by default. More tests on both Ubuntu and MacOS. Add RUBY_YJIT_ENABLE env var and YJIT_FORCE_ENABLE compile-time constant. Rename YJIT_STATS to RUBY_YJIT_STATS. --- yjit_iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yjit_iface.c') diff --git a/yjit_iface.c b/yjit_iface.c index afeb9178e6..73b51fd50d 100644 --- a/yjit_iface.c +++ b/yjit_iface.c @@ -1092,7 +1092,7 @@ rb_yjit_init(struct rb_yjit_options *options) rb_yjit_opts = *options; rb_yjit_opts.yjit_enabled = true; - rb_yjit_opts.gen_stats |= !!getenv("YJIT_STATS"); + rb_yjit_opts.gen_stats = rb_yjit_opts.gen_stats || getenv("RUBY_YJIT_STATS"); #if !YJIT_STATS if(rb_yjit_opts.gen_stats) { -- cgit v1.2.1