summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-07-31 14:18:21 -0700
committerOri Bernstein <ori@markovcorp.com>2017-07-31 14:18:21 -0700
commit2062b04b5fa8248f0b878ac3a0e2df2805168875 (patch)
tree712175f43bfe1e71144a9eed458b431ccaef3959 /mbld
parent9327d328746578c857ada370b61a8ad879553c69 (diff)
downloadmc-2062b04b5fa8248f0b878ac3a0e2df2805168875.tar.gz
Thread link obj files into the depgraph.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/deps.myr5
1 files changed, 3 insertions, 2 deletions
diff --git a/mbld/deps.myr b/mbld/deps.myr
index 81b16f0..5b78cba 100644
--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -117,7 +117,7 @@ const myrdeps = {b, name, mt
dynlibs = [][:]
for f : mt.inputs
p = std.pathcat(mt.dir, f)
- leaf(g, p)
+ n = leaf(g, p)
if std.hassuffix(f, ".myr")
t = changesuffix(p, config.Objsuffix)
o = std.pathcat(opt_objdir, t)
@@ -171,7 +171,8 @@ const myrdeps = {b, name, mt
std.slpush(&dynlibs, l)
;;
elif std.hassuffix(f, config.Objsuffix)
- /* handled by leaf */
+ generates(g, n, p)
+ depends(g, go, p)
else
std.fatal("don't know how to build {}/{}\n", mt.dir, f)
;;