From ab3f1b11fb47ad6c9e393e9de85cb0aad3ecc762 Mon Sep 17 00:00:00 2001 From: Jacob Carlborg Date: Sat, 2 Nov 2013 17:34:23 +0100 Subject: [PATCH] Support excluding paths using glob matching. --- source/dub/compilers/compiler.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/dub/compilers/compiler.d b/source/dub/compilers/compiler.d index 6a1430f04..f879e1abf 100644 --- a/source/dub/compilers/compiler.d +++ b/source/dub/compilers/compiler.d @@ -19,6 +19,7 @@ import std.array; import std.conv; import std.exception; import std.process; +import std.path : globMatch; static this() @@ -240,7 +241,7 @@ struct BuildSettings { bool matches(string s) { foreach (p; vals) - if (Path(s) == Path(p)) + if (Path(s) == Path(p) || globMatch(s, p)) return true; return false; }