diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-18 14:25:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-18 14:25:54 +0000 |
commit | 65ab26604bab94a49546512785aae788ddb76141 (patch) | |
tree | 02baebe801d51127b8e9ca351307ea66975ac55e /ext | |
parent | 5d6ca9e95058bac96140ef9394291fed08a76070 (diff) | |
download | ruby-65ab26604bab94a49546512785aae788ddb76141.tar.gz |
extmk.rb: fix with-ext condition
* ext/extmk.rb: configure intersection of with-ext and not
without-ext, as withouts is no longer true by default if
with-ext option is given. [ruby-dev:49108] [Bug #11280]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rwxr-xr-x | ext/extmk.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 98fd76ca68..84fd950d40 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -514,7 +514,7 @@ withes, withouts = [["--with", nil], ["--without", default_exclude_exts]].collec } cond = proc {|ext, *| cond1 = proc {|n| File.fnmatch(n, ext)} - withes.call(cond1) or !withouts.call(cond1) + withes.call(cond1) and !withouts.call(cond1) } ($extension || %w[*]).each do |e| e = e.sub(/\A(?:\.\/)+/, '') |