shithub: mc

Download patch

ref: 80c52bc20a53ac4c1c304df7a1e470c0ab62c576
parent: a4bcc9067518182c6de7d335c7adc1b4cc2bfb90
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Sep 13 18:18:23 EDT 2015

Build all necessary named targets.

--- a/mbld/build.myr
+++ b/mbld/build.myr
@@ -39,11 +39,11 @@
 	depset = std.mkht(std.strhash, std.streq)
 	addeps(b, targ, depset)
 	for tn in b.all
-		if std.hthas(b.built, tn)
+		if std.hthas(b.built, tn) || !std.hthas(depset, tn)
 			continue
 		;;
-		if !std.hthas(depset, tn)
-			continue
+		if std.sleq(tn, targ)
+			break
 		;;
 		std.htput(b.built, tn, true)
 		match gettarg(b.targs, tn)
@@ -54,9 +54,6 @@
 		| `Man mt:	/* nothing needed */
 		| `Cmd ct:	/* these are for manual commands */
 		;;
-		if std.sleq(tn, targ)
-			break
-		;;
 	;;
 	std.htfree(depset)
 	-> true
@@ -66,7 +63,6 @@
 	if std.hthas(depset, targ)
 		->
 	;;
-	std.put("#### Adding dep {}\n", targ)
 	std.htput(depset, targ, true)
 	match gettarg(b.targs, targ)
 	| `Bin bt: