1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

read around mkmf $ruby setup a bit more. Try this

Maybe solving this at the wrong level. Still not sure why it's picking
up the system Ruby.
This commit is contained in:
Alan Wu 2022-04-21 20:14:56 -04:00
parent 6cfebd5070
commit 0030bb26f7

View file

@ -42,8 +42,7 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
require "shellwords"
cmd = Gem.ruby.shellsplit << "-I" << File.expand_path("../../..", __FILE__) <<
"-r" << get_relative_path(siteconf_path, extension_dir) << File.basename(extension)
cmd << '--ruby'
cmd << Gem.ruby
cmd << "--ruby=#{Gem.ruby}"
cmd.push(*args)
begin