aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/fake.rb.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index 881e39ce46..d70053c264 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -15,7 +15,7 @@ if inc = arg['i']
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
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__))