From 2c165ccba5a15e601b44ce8b6438af1f20ada5ac Mon Sep 17 00:00:00 2001
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Date: Tue, 7 Apr 2026 22:24:35 +0900
Subject: [PATCH] =?UTF-8?q?=E3=82=B7=E3=82=B9=E3=83=86=E3=83=A0=E3=81=AE?=
 =?UTF-8?q?=20Ruby=20=E3=81=8C=20YJIT=20=E3=81=8C=E6=9C=89=E5=8A=B9?=
 =?UTF-8?q?=E3=81=AE=E3=81=A8=E3=81=8D=E3=81=AE=E3=81=BF=20YJIT.enable=20?=
 =?UTF-8?q?=E3=81=99=E3=82=8B=20refs=20#1606?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 mikutter.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mikutter.rb b/mikutter.rb
index 5e518d56..72b7c77c 100755
--- a/mikutter.rb
+++ b/mikutter.rb
@@ -61,7 +61,7 @@ Plugin.call(:boot, nil)
 # _profile_ がtrueなら、プロファイリングした結果を一時ディレクトリに保存する
 def boot!(profile)
   begin
-    RubyVM::YJIT.enable if RUBY_VERSION.split('.') >= %w[3 3]
+    RubyVM::YJIT.enable if RUBY_VERSION.split('.') >= %w[3 3] && defined?(RubyVM::YJIT)
     if profile
       require 'ruby-prof'
       begin
-- 
2.53.0

