extmk.rb: define Gem.target_rbconfig not to break Gem::Platform.local

This commit is contained in:
Yuta Saito 2024-06-18 10:19:52 +09:00
parent a3930db275
commit 7cbe54714c

View File

@ -2,7 +2,13 @@
# -*- mode: ruby; coding: us-ascii -*-
# frozen_string_literal: false
module Gem; end # only needs Gem::Platform
module Gem
# Used by Gem::Platform.local
def self.target_rbconfig
RbConfig::CONFIG
end
end
# only needs Gem::Platform
require 'rubygems/platform'
# :stopdoc: