зеркало из https://github.com/github/ruby.git
test_have_library.rb: toolchains result
* test/mkmf/test_have_library.rb (create_library): check if toolchains work. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
246c66f702
Коммит
a536143507
|
@ -15,11 +15,13 @@ class TestMkmf
|
|||
hdr.puts "void #{FUNC_NAME}_fake(void);"
|
||||
end
|
||||
create_tmpsrc("#include \"#{HEADER_NAME}\"\n""void #{FUNC_NAME}(void) {}")
|
||||
xsystem(cc_command)
|
||||
xsystem("#{CONFIG['AR']} #{config_string('ARFLAGS') || 'cru '}#{lib} #{CONFTEST}.#{$OBJEXT}")
|
||||
assert(xsystem(cc_command), "compile failed: #{cc_command}")
|
||||
command = "#{CONFIG['AR']} #{config_string('ARFLAGS') || 'cru '}#{lib} #{CONFTEST}.#{$OBJEXT}"
|
||||
assert(xsystem(command), "making library failed: #{command}")
|
||||
File.unlink("#{CONFTEST}.#{$OBJEXT}")
|
||||
config_string('RANLIB') do |ranlib|
|
||||
xsystem("#{ranlib} #{lib}")
|
||||
command = "#{ranlib} #{lib}"
|
||||
assert(xsystem(command), "ranlib failed: #{command}")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче