mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
suppress warning: shadowing outer local variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
93955c7560
commit
ece9698d73
1 changed files with 7 additions and 7 deletions
|
@ -17,8 +17,8 @@ exts = {}
|
||||||
[
|
[
|
||||||
["exts", "ext", "--extstatic $(EXTSTATIC)"],
|
["exts", "ext", "--extstatic $(EXTSTATIC)"],
|
||||||
["gems", "gems", "--no-extstatic"],
|
["gems", "gems", "--no-extstatic"],
|
||||||
].each do |t, dir, opt|
|
].each do |t, d, o|
|
||||||
exts[t] = [opt, Dir.glob("#{srcdir}/#{dir}/*/").map {|n| n[(srcdir.size+1)..-2]}]
|
exts[t] = [o, Dir.glob("#{srcdir}/#{d}/*/").map {|n| n[(srcdir.size+1)..-2]}]
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
MINIRUBY = <%=miniruby%>
|
MINIRUBY = <%=miniruby%>
|
||||||
|
@ -30,12 +30,12 @@ all: exts gems
|
||||||
exts:
|
exts:
|
||||||
gems:
|
gems:
|
||||||
|
|
||||||
% exts.each do |t, (opt, dirs)|
|
% exts.each do |t, (o, dirs)|
|
||||||
% dirs.each do |dir|
|
% dirs.each do |d|
|
||||||
<%=t%>: <%=dir%>/exts.mk
|
<%=t%>: <%=d%>/exts.mk
|
||||||
<%=dir%>/exts.mk: FORCE
|
<%=d%>/exts.mk: FORCE
|
||||||
$(Q)$(MINIRUBY) $(srcdir)/ext/extmk.rb --make='$(MAKE)' \
|
$(Q)$(MINIRUBY) $(srcdir)/ext/extmk.rb --make='$(MAKE)' \
|
||||||
--command-output=$@ $(EXTMK_ARGS) <%=opt%> \
|
--command-output=$@ $(EXTMK_ARGS) <%=o%> \
|
||||||
-- configure $(@D)
|
-- configure $(@D)
|
||||||
% end
|
% end
|
||||||
% end
|
% end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue