about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-22 11:03:55 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-22 11:03:55 -0700
commit48f6d48ac99e321278fbab857566fe4ea4d53c4b (patch)
tree30122e9b10cc58d947c57f4778587533e7ec38c8
parent0536b89b990e5dd116251066e6282c17b079503a (diff)
downloadmu-48f6d48ac99e321278fbab857566fe4ea4d53c4b.tar.gz
3548
-rwxr-xr-xbuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/build b/build
index 67ea0f8e..5d5d0fc7 100755
--- a/build
+++ b/build
@@ -98,7 +98,9 @@ older_than mu.cc $LAYERS enumerate/enumerate tangle/tangle && {
   # exception to the rules above: we combine 'older_than' and 'update' here
   # because we sometimes want to hack directly on mu.cc and not lose our
   # changes if they're newer.
-  ./tangle/tangle $LAYERS |update mu.cc
+  # ./tangle/tangle $LAYERS |update mu.cc
+  ./tangle/tangle $LAYERS > mu_tmp.cc  # die if this fails
+  cat mu_tmp.cc |update mu.cc
 }
 
 older_than cleave/cleave cleave/cleave.cc && {
@@ -147,3 +149,4 @@ exit 0
 # scenarios considered:
 #   no output when nothing needs updating
 #   only a single layer is recompiled when changing a C++ function
+#   stop immediately after failure in tangle