summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2026-02-04 16:32:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2026-02-04 16:32:55 +0900
commitc3b6f2e9a2575ea5be0c49fb77ae051fe7981789 (patch)
treed4b851d4da39bb4839ffcaef80a55d86c6c4a6cd
parent444a3609a5d6ad44e6a0289110384d7716e42115 (diff)
Load `rubygems/platform.rb` after setting up the load path
-rwxr-xr-xext/extmk.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 5025e0632c..f5244f72c8 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -8,8 +8,6 @@ module Gem
RbConfig::CONFIG
end
end
-# only needs Gem::Platform
-require 'rubygems/platform'
# :stopdoc:
$extension = nil
@@ -40,6 +38,9 @@ unless defined?(CROSS_COMPILING) and CROSS_COMPILING
end
require 'rbconfig'
+# only needs Gem::Platform
+require 'rubygems/platform'
+
$topdir = "."
$top_srcdir = srcdir
$extmk = true