about summary refs log tree commit diff stats
path: root/build
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-20 23:57:12 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-20 23:57:12 -0700
commit22d93b76718a9e260c1969adf53fc0559cf24355 (patch)
treeeff015a3d30454e2074d13f6775f4226e779611e /build
parente62ef075da85367425862ac399f12ff3991349de (diff)
downloadmu-22d93b76718a9e260c1969adf53fc0559cf24355.tar.gz
3538
Diffstat (limited to 'build')
-rwxr-xr-xbuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/build b/build
index dfd0fd81..ab9c92fd 100755
--- a/build
+++ b/build
@@ -94,7 +94,12 @@ older_than enumerate/enumerate enumerate/enumerate.cc && {
 )
 
 LAYERS=$(./enumerate/enumerate --until $UNTIL_LAYER |grep -v '.mu$')
-./tangle/tangle $LAYERS |update mu.cc
+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
+}
 
 older_than cleave/cleave cleave/cleave.cc && {
   $CXX -O3 -Wall -Wextra -fno-strict-aliasing cleave/cleave.cc -o cleave/cleave