diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-10-03 01:02:18 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-10-03 01:02:18 +0900 |
commit | 99620b98ba5a9e24a4996794441e1806af66908e () | |
tree | a618ddf0febaa8f90c799491140813626c8e2bb1 /template | |
parent | bf8a8820baeff59d507ce7d32a2f52e46500733f (diff) |
fake.rb: Copy options in RUBY_DESCRIPTION to the fake string
The `RUBY_DESCRIPTION_WITH` macro has been removed already, so there are no more descriptions strings with rjit/yjit enabled.
Notes: Merged: https://.com/ruby/ruby/pull/11766
-rw-r--r-- | template/fake.rb.in | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -24,9 +24,8 @@ File.read(File.join(arg['srcdir'], 'version.c')). scan(/rb_define_global_const\("(RUBY_\w+)",[^;]*?\bMK(?:INT|(STR))\(([^()]*)\)/m) do |n, s, v| version[n] = arg[v] || src.value(v) || (s ? v : 0) end -arg['RUBY_DESCRIPTION_WITH_RJIT'] = src.value('description_with_rjit') || 'description_with_rjit' -arg['RUBY_DESCRIPTION_WITH_YJIT'] = src.value('description_with_yjit') || 'description_with_yjit' -%>baseruby="<%=arg['BASERUBY']%>" _\ =begin _= @@ -39,16 +38,14 @@ exec $ruby "$r" "$@" class Object remove_const :CROSS_COMPILING if defined?(CROSS_COMPILING) CROSS_COMPILING = RUBY_PLATFORM constants.grep(/^RUBY_/) {|n| remove_const n} % arg['versions'].each {|n, v| - <%=n%> = <%if n=='RUBY_DESCRIPTION' %>case - when RubyVM.const_defined?(:RJIT) && RubyVM::RJIT.enabled? - <%=arg['RUBY_DESCRIPTION_WITH_RJIT'].inspect%> - when RubyVM.const_defined?(:YJIT) && RubyVM::YJIT.enabled? - <%=arg['RUBY_DESCRIPTION_WITH_YJIT'].inspect%> - else - <%=v.inspect%> - end<%else%><%=v.inspect%><%end%> % } end builddir = File.dirname(File.expand_path(__FILE__)) |