From dfdd556255e07b69726e9d00caa6df58e0830faa Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 15 Jun 2018 00:06:33 +0000 Subject: Bootstrapping ruby runtime might not have RubyVM::MJIT defined. [Fix GH-1891] From: U-DESKTOP-RLT5UQ8\moriyoshi git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- template/fake.rb.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'template') diff --git a/template/fake.rb.in b/template/fake.rb.in index d70053c264..524f6c888d 100644 --- a/template/fake.rb.in +++ b/template/fake.rb.in @@ -32,7 +32,7 @@ class Object 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%> % } -- cgit v1.2.1