shithub: mc

Download patch

ref: 79b129862995597515302ab1788993f88c3c6cbc
parent: cda6f9053c2f2eb983c256fab0515f173c3c79a8
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Sep 28 15:31:23 EDT 2014

Better staleness decisions.

    We now should rebuild a stale output, even if none of their inputs
    are sources.

--- a/build.myr
+++ b/build.myr
@@ -108,6 +108,9 @@
 			if builddep(dg, d)
 				stale = true
 			;;
+			if !isfresh(d, out)
+				stale = true
+			;;
 		;;
 	| `std.None:
 	;;
@@ -114,9 +117,6 @@
 
 	match std.htget(dg.sources, out)
 	| `std.Some src:
-		if !isfresh(src, out)
-			stale = true
-		;;
 		if stale
 			if std.hassuffix(src, ".myr")
 				run(["6m", src][:], "")