Skip to content

Commit

Permalink
Merge pull request #155 from jacob-carlborg/exclude_glob
Browse files Browse the repository at this point in the history
Support excluding paths using glob matching.
  • Loading branch information
s-ludwig committed Nov 2, 2013
2 parents f3a818e + ab3f1b1 commit 615e4d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/dub/compilers/compiler.d
Expand Up @@ -19,6 +19,7 @@ import std.array;
import std.conv;
import std.exception;
import std.process;
import std.path : globMatch;


static this()
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 615e4d7

Please sign in to comment.