mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
extmk.rb: failures format
* ext/extmk.rb: show extension failures in compilation-mode friendly format. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3bdf613a45
commit
8cd05857c6
1 changed files with 11 additions and 2 deletions
13
ext/extmk.rb
13
ext/extmk.rb
|
@ -256,7 +256,7 @@ def extmake(target)
|
||||||
Logging::message(error.to_s) if error
|
Logging::message(error.to_s) if error
|
||||||
Logging::message("Failed to configure #{target}. It will not be installed.\n")
|
Logging::message("Failed to configure #{target}. It will not be installed.\n")
|
||||||
end
|
end
|
||||||
return [target, error]
|
return [conf, error]
|
||||||
end
|
end
|
||||||
args = sysquote($mflags)
|
args = sysquote($mflags)
|
||||||
unless $destdir.to_s.empty? or $mflags.defined?("DESTDIR")
|
unless $destdir.to_s.empty? or $mflags.defined?("DESTDIR")
|
||||||
|
@ -745,7 +745,16 @@ if $configure_only and $command_output
|
||||||
unless fails.empty?
|
unless fails.empty?
|
||||||
mf.puts %Q<\t@echo "*** Following extensions failed to configure:">
|
mf.puts %Q<\t@echo "*** Following extensions failed to configure:">
|
||||||
fails.each do |d, e|
|
fails.each do |d, e|
|
||||||
mf.puts %Q<\t@echo " #{d}#{e && %Q(: #{e})}">
|
if e && e.respond_to?(:backtrace_locations)
|
||||||
|
n = e.backtrace_locations[0].lineno
|
||||||
|
else
|
||||||
|
n = 0
|
||||||
|
end
|
||||||
|
d = "#{d}:#{n}:"
|
||||||
|
if e
|
||||||
|
d << " " << e.message
|
||||||
|
end
|
||||||
|
mf.puts %Q<\t@echo "#{d}">
|
||||||
end
|
end
|
||||||
mf.puts %Q<\t@echo "*** Fix the problems, then remove these directories and try again if you want.">
|
mf.puts %Q<\t@echo "*** Fix the problems, then remove these directories and try again if you want.">
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue