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

extmk.rb: get rid of shadowing outer local variable

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-03-25 01:52:22 +00:00
parent 2936d4b378
commit 21a63760c9

View file

@ -505,7 +505,7 @@ cond = proc {|ext, *|
}
incl.sort!
excl.sort!.collect! {|d| d+"/"}
nil while incl.reject! {|d| excl << d+"/" if excl.any? {|e| d.start_with?(e)}}
nil while incl.reject! {|d| excl << d+"/" if excl.any? {|x| d.start_with?(x)}}
exts |= incl
if $LIBRUBYARG_SHARED.empty? and CONFIG["EXTSTATIC"] == "static"
exts.delete_if {|d| File.fnmatch?("-*", d)}