summaryrefslogtreecommitdiff
path: root/lib/rubygems/ext/ext_conf_builder.rb
diff options
context:
space:
mode:
authorなつき <[email protected]>2023-03-16 18:09:45 -0700
committerHiroshi SHIBATA <[email protected]>2023-03-23 17:18:49 +0900
commite46d473396401f8f320b4a5b8f638630ab42fa4c ()
tree8f1637b2d7a0463b7f4877093ffecb67a5be8e39 /lib/rubygems/ext/ext_conf_builder.rb
parentf8ecf145cee5a2af4cf48a2c0b6bf600886b8b96 (diff)
Make sure native extensions are loaded correctly in ext_conf builder
Notes: Merged: https://.com/ruby/ruby/pull/7582
-rw-r--r--lib/rubygems/ext/ext_conf_builder.rb16
1 files changed, 15 insertions, 1 deletions
@@ -21,9 +21,23 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
destdir = ENV["DESTDIR"]
begin
require "shellwords"
- cmd = Gem.ruby.shellsplit << "-I" << File.expand_path("../..", __dir__) << File.basename(extension)
cmd.push(*args)
run(cmd, results, class_name, extension_dir) do |s, r|