about summary refs log tree commit diff stats
path: root/build_and_test_until
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-04-10 20:26:54 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-04-10 20:26:54 -0700
commit5939c226b41d6876aa7a36833a01a241925ddd00 (patch)
tree1455f8acfa9940a0a44c77743ead8ee52c39a5ec /build_and_test_until
parent0d302187154ef37b031e918afbc05e4c3e4f13b8 (diff)
downloadmu-5939c226b41d6876aa7a36833a01a241925ddd00.tar.gz
2828
Diffstat (limited to 'build_and_test_until')
-rwxr-xr-xbuild_and_test_until16
1 files changed, 13 insertions, 3 deletions
diff --git a/build_and_test_until b/build_and_test_until
index 15e0e4cd..96eb9e43 100755
--- a/build_and_test_until
+++ b/build_and_test_until
@@ -9,6 +9,16 @@ make --no-print-directory enumerate/enumerate
 ./tangle/tangle $(./enumerate/enumerate --until $1 |grep -v '.mu$') |grep -v "^\s*//:" > mu.cc
 cat /dev/null $(./enumerate/enumerate --until $1 |grep '.mu$') > core.mu
 make --no-print-directory autogenerated_lists
-sleep 1  # Darwin is shit and otherwise thinks mu_bin is newer than the files it just generated when called from test_all_layers.
-         # All sorts of strange bugs ensue.
-CXX=${CXX:-clang++} CFLAGS=${CFLAGS:-"-O3 -fsanitize=undefined -Wno-tautological-constant-out-of-range-compare"} make ${2:-valgrind}
+set +v
+if [ `uname` == "Darwin" ]
+then
+  # Darwin is shit and otherwise thinks mu_bin is newer than the files it just
+  # generated when called from test_all_layers.
+  # All sorts of strange bugs ensue.
+  sleep 1
+  set -v  # Darwin's clang and valgrind is shit.
+  CFLAGS=${CFLAGS:-"-g -O3"} make test
+else
+  set -v
+  CXX=${CXX:-clang++} CFLAGS=${CFLAGS:-"-O3 -fsanitize=undefined -Wno-tautological-constant-out-of-range-compare"} make ${2:-valgrind}
+fi