summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-01-09 21:31:35 -0800
committerOri Bernstein <ori@eigenstate.org>2018-01-09 21:31:35 -0800
commit7e54db408cbfd206f16775070aef8fb0115587f7 (patch)
tree95fe49986647230ac60c6f9281c6d35543448b18 /mbld
parente761ce9ef2f89c9f87a4be72b88b837109630c2b (diff)
downloadmc-7e54db408cbfd206f16775070aef8fb0115587f7.tar.gz
The fastest regex is the one we don't run.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/deps.myr4
1 files changed, 4 insertions, 0 deletions
diff --git a/mbld/deps.myr b/mbld/deps.myr
index 4941557..d7767d8 100644
--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -525,6 +525,10 @@ const scrapedeps = {b : build#, mt, path
l = [][:]
for ln : bio.byline(f)
+ match std.strfind(ln, "use")
+ | `std.None: continue
+ | `std.Some _: /* ok */
+ ;;
match regex.exec(usepat, ln)
| `std.None:
| `std.Some uses: