summaryrefslogtreecommitdiff
path: root/mbld/deps.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-05-21 23:09:21 -0700
committerOri Bernstein <ori@eigenstate.org>2016-05-21 23:09:21 -0700
commit41dfa1df58c7e398a68e9c2b6f6f745b7b3f0b2b (patch)
treefbdf16dda8d6add616e336a2bb38c794bb06371c /mbld/deps.myr
parentc3a7db11052192c3ae599604e0c3922a28a7f771 (diff)
downloadmc-41dfa1df58c7e398a68e9c2b6f6f745b7b3f0b2b.tar.gz
Add fallback for usefile path on installed dir.
Diffstat (limited to 'mbld/deps.myr')
-rw-r--r--mbld/deps.myr5
1 files changed, 5 insertions, 0 deletions
diff --git a/mbld/deps.myr b/mbld/deps.myr
index dcfc7c4..ddc3e6b 100644
--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -380,6 +380,11 @@ const openlib = {lib, incs
libname = std.fmt("lib{}.use", lib)
path = std.pathjoin([opt_instbase, config.Libpath, libname][:])
+ if !std.fisreg(path)
+ std.slfree(path)
+ path = std.pathjoin([opt_instbase, config.Libpath, lib][:])
+ ;;
+
std.slfree(libname)
:found
match bio.open(path, bio.Rd)