shithub: mc

Download patch

ref: 2062b04b5fa8248f0b878ac3a0e2df2805168875
parent: 9327d328746578c857ada370b61a8ad879553c69
author: Ori Bernstein <ori@markovcorp.com>
date: Mon Jul 31 10:18:21 EDT 2017

Thread link obj files into the depgraph.

--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -117,7 +117,7 @@
 	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 @@
 				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)
 		;;