aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-15 00:06:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-15 00:06:33 +0000
commitdfdd556255e07b69726e9d00caa6df58e0830faa (patch)
tree4257838c0348b7150df4e378a8a1376b969c5deb /template
parenta03ea378e79048ac188c8e4211ed2305e4643558 (diff)
downloadruby-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.in2
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%>
% }