ruby-changes:51317
From: nobu <ko1@a...>
Date: Wed, 30 May 2018 08:28:55 +0900 (JST)
Subject: [ruby-changes:51317] nobu:r63523 (trunk): fake.rb: fix RUBY_DESCRIPTION for MJIT
nobu 2018-05-30 08:28:50 +0900 (Wed, 30 May 2018) New Revision: 63523 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63523 Log: fake.rb: fix RUBY_DESCRIPTION for MJIT * template/fake.rb.in: switch RUBY_DESCRIPTION at runtime depending on the MJIT status. Modified files: trunk/template/fake.rb.in Index: template/fake.rb.in =================================================================== --- template/fake.rb.in (revision 63522) +++ template/fake.rb.in (revision 63523) @@ -15,7 +15,7 @@ if inc = arg['i'] https://github.com/ruby/ruby/blob/trunk/template/fake.rb.in#L15 scan(/rb_define_global_const\("(RUBY_\w+)",[^;]*?\bMK(?:INT|STR)\(([^()]*)\)/m) do |n, v| version[n] = src.value(v) end - version['RUBY_DESCRIPTION'] = src.value('description_with_jit') if RubyVM::MJIT.enabled? + arg['RUBY_DESCRIPTION_WITH_JIT'] = src.value('description_with_jit') end %>baseruby="<%=arg['BASERUBY']%>" _\ @@ -32,7 +32,9 @@ 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%> = <%=v.inspect%> + <%=n%> = <%if n=='RUBY_DESCRIPTION' %>RubyVM::MJIT.enabled? ? + <%=arg['RUBY_DESCRIPTION_WITH_JIT'].inspect%> : + <%end%><%=v.inspect%> % } end builddir = File.dirname(File.expand_path(__FILE__)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/