diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-15 00:06:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-15 00:06:33 +0000 |
commit | 2b9949e1bab45fc8c86b4bdd2b419b78e6667832 (patch) | |
tree | 4257838c0348b7150df4e378a8a1376b969c5deb /template | |
parent | c0e222bf7914a3cb7aa7eeaf27a951c2ab38d2ae (diff) | |
download | ruby-2b9949e1bab45fc8c86b4bdd2b419b78e6667832.tar.gz |
Bootstrapping ruby runtime might not have RubyVM::MJIT defined.
[Fix GH-1891]
From: U-DESKTOP-RLT5UQ8\moriyoshi <mozo@mozo.jp>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r-- | template/fake.rb.in | 2 |
1 files changed, 1 insertions, 1 deletions
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%> % } |