summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/extmk.rb')
-rw-r--r--ext/extmk.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 8734eae00f..ab2ae4f3ee 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -406,8 +406,12 @@ else
proc {|c1| w.collect {|o| o.split(/,/)}.flatten.any?(&c1)}
end
}
- withes ||= proc {false}
- withouts ||= proc {true}
+ if withes
+ withouts ||= proc {true}
+ else
+ withes = proc {false}
+ withouts ||= withes
+ end
cond = proc {|ext, *|
cond1 = proc {|n| File.fnmatch(n, ext)}
withes.call(cond1) or !withouts.call(cond1)