about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-07-22 17:36:28 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-22 17:36:28 -0700
commit4dc5dfa56f1ed1dbf31c1eaade739eda7ba6b046 (patch)
tree4da5c7033a605785fc2735e2abebe78c326225bb /subx
parentd353ec60971d480aa74d92518fdd82c9b1bd4c39 (diff)
downloadmu-4dc5dfa56f1ed1dbf31c1eaade739eda7ba6b046.tar.gz
5449
Stop rebuilding example programs just because subx_bin got recreated.
Diffstat (limited to 'subx')
-rwxr-xr-xsubx/build5
1 files changed, 4 insertions, 1 deletions
diff --git a/subx/build b/subx/build
index 75838c64..8939c8b3 100755
--- a/subx/build
+++ b/subx/build
@@ -109,10 +109,13 @@ older_than subx_bin subx.cc *_list && {
 if [ $# -eq 0 ]
 then
 
+  # Assumption: SubX programs don't need to be retranslated every time we
+  # rebuild the C++ bootstrap.
+
   # simple example programs
   for n in `seq 1 12`
   do
-    older_than examples/ex$n examples/ex$n.subx subx_bin && {
+    older_than examples/ex$n examples/ex$n.subx && {
       ./subx_bin translate examples/ex$n.subx -o examples/ex$n
     }
   done