summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-06-25 01:46:57 -0700
committerOri Bernstein <ori@eigenstate.org>2017-06-25 01:46:57 -0700
commit112022b46043bd1e5f4aa458f94b3ce0a1706490 (patch)
treed058ce1c8d83d5512689782d6d0d72a4f995fac5 /mbld
parent4c170a46ccb639cd901b593da3301c9ff4e583a6 (diff)
downloadmc-112022b46043bd1e5f4aa458f94b3ce0a1706490.tar.gz
Add comment explaining reason for continue.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/build.myr7
1 files changed, 7 insertions, 0 deletions
diff --git a/mbld/build.myr b/mbld/build.myr
index 9a99749..7628529 100644
--- a/mbld/build.myr
+++ b/mbld/build.myr
@@ -212,6 +212,13 @@ const builddep = {b, dg, out, incs
| `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)