aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-23 16:19:22 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-23 16:19:22 +0000
commit7e72bce2fcf151b8b878c532f3bbe7a363f77539 (patch)
tree3cb7c0743d8b140dc14a4724fa19041880908227 /template
parent27652d583eadf9a9d4d825f860a02ae60e8a15cb (diff)
downloadruby-7e72bce2fcf151b8b878c532f3bbe7a363f77539.tar.gz
suppress warning: shadowing outer local variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r--template/configure-ext.mk.tmpl14
1 files changed, 7 insertions, 7 deletions
diff --git a/template/configure-ext.mk.tmpl b/template/configure-ext.mk.tmpl
index 2b6690c8b8..4f0d31d700 100644
--- a/template/configure-ext.mk.tmpl
+++ b/template/configure-ext.mk.tmpl
@@ -17,8 +17,8 @@ exts = {}
[
["exts", "ext", "--extstatic $(EXTSTATIC)"],
["gems", "gems", "--no-extstatic"],
-].each do |t, dir, opt|
- exts[t] = [opt, Dir.glob("#{srcdir}/#{dir}/*/").map {|n| n[(srcdir.size+1)..-2]}]
+].each do |t, d, o|
+ exts[t] = [o, Dir.glob("#{srcdir}/#{d}/*/").map {|n| n[(srcdir.size+1)..-2]}]
end
%>
MINIRUBY = <%=miniruby%>
@@ -30,12 +30,12 @@ all: exts gems
exts:
gems:
-% exts.each do |t, (opt, dirs)|
-% dirs.each do |dir|
-<%=t%>: <%=dir%>/exts.mk
-<%=dir%>/exts.mk: FORCE
+% exts.each do |t, (o, dirs)|
+% dirs.each do |d|
+<%=t%>: <%=d%>/exts.mk
+<%=d%>/exts.mk: FORCE
$(Q)$(MINIRUBY) $(srcdir)/ext/extmk.rb --make='$(MAKE)' \
- --command-output=$@ $(EXTMK_ARGS) <%=opt%> \
+ --command-output=$@ $(EXTMK_ARGS) <%=o%> \
-- configure $(@D)
% end
% end