summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yjit_iface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/yjit_iface.c b/yjit_iface.c
index 9e1085a788..36f0819d7d 100644
--- a/yjit_iface.c
+++ b/yjit_iface.c
@@ -1035,6 +1035,8 @@ 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");
+
// Normalize command-line options to default values
if (rb_yjit_opts.exec_mem_size < 1) {
rb_yjit_opts.exec_mem_size = 256;