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

extmk.rb: fail for mandatory libraries

* ext/extmk.rb: fail if a mandatory extension library failed to
  configure.  [ruby-core:80759] [Feature #13302]

* template/exts.mk.tmpl: move `exit` at the end.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-04-20 08:13:16 +00:00
parent cafa438f80
commit b58a30e1c1
2 changed files with 17 additions and 5 deletions

View file

@ -50,8 +50,10 @@ Dir.glob("{ext,gems}/*/exts.mk") do |e|
end
s.scan(%r"^note:\n((?:\t.+\n)+)") do |(n)|
n = n.split(/^/)
e = (note.pop if /@exit/ =~ note[-1])
note.pop if n[-1] == note[-1]
note |= n
note << e if e
end
end
deps.uniq!
@ -116,7 +118,9 @@ clean:
distclean:
-$(Q)$(RM) ext/extinit.c
<%= deps.join("\n") %>
% deps.each do |d|
<%= d %>
% end
% rubies.each do |ruby|
<%= ruby %>: