shithub: mc

Download patch

ref: 112022b46043bd1e5f4aa458f94b3ce0a1706490
parent: 4c170a46ccb639cd901b593da3301c9ff4e583a6
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Jun 24 21:46:57 EDT 2017

Add comment explaining reason for continue.

--- a/mbld/build.myr
+++ b/mbld/build.myr
@@ -212,6 +212,13 @@
 	| `std.Some deps:
 		for d in deps
 			if std.sleq(out, d)
+				/*
+				if an input generates itself (eg, object files), we
+				shouldn't recurse here, because that would be infinite.
+
+				The generation rule will be invoked from the target that
+				consumes this file.
+				*/
 				continue
 			;;
 			if std.sleq(out, d) || builddep(b, dg, d, incs)