[rubygems/rubygems] Workaround for TruffleRuby that set nil to LIBRUBY_RELATIVE

https://github.com/rubygems/rubygems/commit/06fd399973
This commit is contained in:
Nobuyoshi Nakada 2024-06-19 19:21:13 +09:00 committed by git
parent 378e65af9a
commit 57e15074fe

View File

@ -323,10 +323,10 @@ install:
end
RUBY
RbConfig::CONFIG.each do |k, v|
f.puts %(RbConfig::CONFIG[#{k.dump}] = #{v.dump})
f.puts %(RbConfig::CONFIG[#{k.dump}] = #{v&.dump || "nil"})
end
RbConfig::MAKEFILE_CONFIG.each do |k, v|
f.puts %(RbConfig::MAKEFILE_CONFIG[#{k.dump}] = #{v.dump})
f.puts %(RbConfig::MAKEFILE_CONFIG[#{k.dump}] = #{v&.dump || "nil"})
end
f.puts "RbConfig::CONFIG['host_os'] = 'fake_os'"
f.puts "RbConfig::CONFIG['arch'] = 'fake_arch'"