Remove warning when generating $(arch)-fake.rb

This happens if BASERUBY is Ruby 3.4.

    $ rm -f *-fake.rb && make test-precheck RUBYOPT=-w >/dev/null
    build/arm64-darwin24-fake.rb:28: warning: ::Ruby is reserved for Ruby 3.5
This commit is contained in:
Étienne Barrié 2025-10-06 16:50:01 +02:00 committed by Nobuyoshi Nakada
parent c6a119c751
commit 03f714de62
Notes: git 2025-10-07 03:35:28 +00:00

View File

@ -49,6 +49,7 @@ class Object
else%><%=v.inspect%><%end%>
% }
end
v=$VERBOSE;$VERBOSE=nil;module Ruby; end;$VERBOSE=v
module Ruby
constants.each {|n| remove_const n}
% arg['versions'].each {|n, v|