summaryrefslogtreecommitdiff
path: root/yjit_iface.c
diff options
context:
space:
mode:
authorNoah Gibbs <noah.gibbs@shopify.com>2021-10-01 13:45:02 +0100
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:42 -0400
commit21e58acef347bb3891262ab38ac211c8d877efd7 (patch)
tree7328e6df9f224a77e8cf841a92788c9afee727f2 /yjit_iface.c
parent7c08538aa3a366409784f6a8b7aa013b85633803 (diff)
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.
Diffstat (limited to 'yjit_iface.c')
-rw-r--r--yjit_iface.c2
1 files changed, 1 insertions, 1 deletions
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) {