ruby-changes:69254
From: Aaron <ko1@a...>
Date: Thu, 21 Oct 2021 08:24:22 +0900 (JST)
Subject: [ruby-changes:69254] 9d5beb6fde (master): Disable YJIT by default if MJIT_FORCE_ENABLE is on
https://git.ruby-lang.org/ruby.git/commit/?id=9d5beb6fde From 9d5beb6fde45c8182d8dc6b8baade2fa5a6f4e07 Mon Sep 17 00:00:00 2001 From: Aaron Patterson <tenderlove@r...> Date: Wed, 8 Sep 2021 09:47:00 -0700 Subject: 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) https://github.com/ruby/ruby/blob/trunk/ruby.c#L233 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; } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/