summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2021-09-08 09:47:00 -0700
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:40 -0400
commit9d5beb6fde45c8182d8dc6b8baade2fa5a6f4e07 (patch)
tree5a1208def95579f446960c718f87e1ec4aa80737 /ruby.c
parentea453acf596ba436838ce17809c1cf6dc70fa738 (diff)
Disable YJIT by default if MJIT_FORCE_ENABLE is on
Compile time flag seems pretty forceful, so let MJIT turn on by default if it is used.
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index bf161f6df7..22cfeace1e 100644
--- a/ruby.c
+++ b/ruby.c
@@ -233,8 +233,9 @@ cmdline_options_init(ruby_cmdline_options_t *opt)
opt->features.set = DEFAULT_FEATURES;
#ifdef MJIT_FORCE_ENABLE /* to use with: ./configure cppflags="-DMJIT_FORCE_ENABLE" */
opt->features.set |= FEATURE_BIT(jit);
-#endif
+#else
opt->features.set |= FEATURE_BIT(yjit);
+#endif
return opt;
}