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 | dfdd556255e07b69726e9d00caa6df58e0830faa (patch) | |
tree | 4257838c0348b7150df4e378a8a1376b969c5deb /template | |
parent | a03ea378e79048ac188c8e4211ed2305e4643558 (diff) | |
download | bundler-dfdd556255e07b69726e9d00caa6df58e0830faa.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%> % } |