From 9d5beb6fde45c8182d8dc6b8baade2fa5a6f4e07 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 8 Sep 2021 09:47:00 -0700 Subject: [PATCH] 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. --- ruby.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }