[前][次][番号順一覧][スレッド一覧]

ruby-changes:69195

From: Aaron <ko1@a...>
Date: Thu, 21 Oct 2021 08:23:20 +0900 (JST)
Subject: [ruby-changes:69195] b78c50d800 (master): Don't check MJIT if it's not enabled

https://git.ruby-lang.org/ruby.git/commit/?id=b78c50d800

From b78c50d800a5afca84a26a7a14b0ecbb04f838e8 Mon Sep 17 00:00:00 2001
From: Aaron Patterson <tenderlove@r...>
Date: Wed, 8 Sep 2021 10:21:03 -0700
Subject: Don't check MJIT if it's not enabled

---
 ruby.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ruby.c b/ruby.c
index 22cfeace1e..d722489aca 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1842,10 +1842,12 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt) https://github.com/ruby/ruby/blob/trunk/ruby.c#L1842
     }
 #endif
     if (opt->features.set & FEATURE_BIT(yjit)) {
+#if USE_MJIT
         if (opt->mjit.on) {
             rb_warn("MJIT and YJIT cannot both be enabled at the same time. Exiting");
             exit(1);
         }
+#endif
         rb_yjit_init(&opt->yjit);
     }
     if (opt->dump & (DUMP_BIT(version) | DUMP_BIT(version_v))) {
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]