mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
e345970707
commit
92ab2dac22
1 changed files with 9 additions and 3 deletions
|
@ -333,9 +333,15 @@ install:
|
||||||
f.puts "RbConfig::CONFIG['platform'] = 'fake_platform'"
|
f.puts "RbConfig::CONFIG['platform'] = 'fake_platform'"
|
||||||
end
|
end
|
||||||
|
|
||||||
system(Gem.ruby, "-rmkmf", "-e", "exit MakeMakefile::RbConfig::CONFIG['host_os'] == 'fake_os'",
|
stdout, stderr = capture_subprocess_io do
|
||||||
"--", "--target-rbconfig=#{fake_rbconfig}")
|
system(Gem.ruby, "-rmkmf", "-e", "exit MakeMakefile::RbConfig::CONFIG['host_os'] == 'fake_os'",
|
||||||
pend "This version of mkmf does not support --target-rbconfig" unless $?.success?
|
"--", "--target-rbconfig=#{fake_rbconfig}")
|
||||||
|
end
|
||||||
|
unless $?.success?
|
||||||
|
assert_include(stderr, "uninitialized constant MakeMakefile::RbConfig")
|
||||||
|
pend "This version of mkmf does not support --target-rbconfig"
|
||||||
|
end
|
||||||
|
assert_empty(stdout)
|
||||||
|
|
||||||
@spec.extensions << "extconf.rb"
|
@spec.extensions << "extconf.rb"
|
||||||
@builder = Gem::Ext::Builder.new @spec, "", Gem::TargetRbConfig.from_path(fake_rbconfig)
|
@builder = Gem::Ext::Builder.new @spec, "", Gem::TargetRbConfig.from_path(fake_rbconfig)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue