[rubygems/rubygems] Remove patches for old TruffleRuby versions
https://github.com/rubygems/rubygems/commit/264c61eb8e
This commit is contained in:
parent
da82b84b55
commit
b39b998a17
@ -329,10 +329,6 @@ module Gem
|
||||
without_gnu_nor_abi_modifiers
|
||||
end
|
||||
end
|
||||
|
||||
if RUBY_ENGINE == "truffleruby" && !defined?(REUSE_AS_BINARY_ON_TRUFFLERUBY)
|
||||
REUSE_AS_BINARY_ON_TRUFFLERUBY = %w[libv8 libv8-node sorbet-static].freeze
|
||||
end
|
||||
end
|
||||
|
||||
Platform.singleton_class.module_eval do
|
||||
|
@ -1386,17 +1386,6 @@ begin
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
# TruffleRuby >= 24 defines REUSE_AS_BINARY_ON_TRUFFLERUBY in defaults/truffleruby.
|
||||
# However, TruffleRuby < 24 defines REUSE_AS_BINARY_ON_TRUFFLERUBY directly in its copy
|
||||
# of lib/rubygems/platform.rb, so it is not defined if RubyGems is updated (gem update --system).
|
||||
# Instead, we define it here in that case, similar to bundler/lib/bundler/rubygems_ext.rb.
|
||||
# We must define it here and not in platform.rb because platform.rb is loaded before defaults/truffleruby.
|
||||
class Gem::Platform
|
||||
if RUBY_ENGINE == "truffleruby" && !defined?(REUSE_AS_BINARY_ON_TRUFFLERUBY)
|
||||
REUSE_AS_BINARY_ON_TRUFFLERUBY = %w[libv8 libv8-node sorbet-static].freeze
|
||||
end
|
||||
end
|
||||
|
||||
##
|
||||
# Loads the default specs.
|
||||
Gem::Specification.load_defaults
|
||||
|
Loading…
x
Reference in New Issue
Block a user