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

ruby-changes:51455

From: nobu <ko1@a...>
Date: Fri, 15 Jun 2018 09:06:40 +0900 (JST)
Subject: [ruby-changes:51455] nobu:r63664 (trunk): Bootstrapping ruby runtime might not have RubyVM::MJIT defined.

nobu	2018-06-15 09:06:33 +0900 (Fri, 15 Jun 2018)

  New Revision: 63664

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63664

  Log:
    Bootstrapping ruby runtime might not have RubyVM::MJIT defined.
    
    [Fix GH-1891]
    
    From: U-DESKTOP-RLT5UQ8\moriyoshi <mozo@m...>

  Modified files:
    trunk/template/fake.rb.in
Index: template/fake.rb.in
===================================================================
--- template/fake.rb.in	(revision 63663)
+++ template/fake.rb.in	(revision 63664)
@@ -32,7 +32,7 @@ class Object https://github.com/ruby/ruby/blob/trunk/template/fake.rb.in#L32
   CROSS_COMPILING = RUBY_PLATFORM
   constants.grep(/^RUBY_/) {|n| remove_const n}
 % arg['versions'].each {|n, v|
-  <%=n%> = <%if n=='RUBY_DESCRIPTION' %>RubyVM::MJIT.enabled? ?
+  <%=n%> = <%if n=='RUBY_DESCRIPTION' %>RubyVM.const_defined?(:MJIT) && RubyVM::MJIT.enabled? ?
     <%=arg['RUBY_DESCRIPTION_WITH_JIT'].inspect%> :
     <%end%><%=v.inspect%>
 % }

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

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