about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-31 13:19:16 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-31 13:19:16 -0700
commit0708d07f905687e38d4b2544117eeccbcda9d539 (patch)
tree3e4e4f816c77868fcae988aa0b5403d7d5369417
parent376b333a39445bba51ab9210e1a32f18e86da4e6 (diff)
downloadmu-0708d07f905687e38d4b2544117eeccbcda9d539.tar.gz
3287 - drop hacky implicit meaning of CXXFLAGS
Now that we have a new build system we shouldn't need to run unoptimized
just to save time. (Though that's not strictly true; if a change
modifies .build/mu_0.cc which is twice as large as later compilation
units, dropping -O3 shaves 10s off the time for an incremental build.)

Since we don't need to run unoptimized anymore, let's just explicitly
ask for --test-only-app when we need it.
-rwxr-xr-xmu10
1 files changed, 0 insertions, 10 deletions
diff --git a/mu b/mu
index 57590f88..7d82e32a 100755
--- a/mu
+++ b/mu
@@ -5,15 +5,6 @@
 # show make output only if something needs doing
 make -q || make >&2 || exit 1
 
-# Little bit of cleverness: If I'm setting flags at the commandline I'm often
-# disabling optimizations. In that case don't run all tests if I load any app
-# files.
-# Might be too clever..
-if [[ $CXXFLAGS && $# -gt 0 && $1 != '--help' ]]  # latter two conditions are to continue printing the help message
-then
-  FLAGS=--test-only-app
-fi
-
 ./mu_bin $FLAGS "$@"
 
 # Scenarios considered:
@@ -21,4 +12,3 @@ fi
 #   mu --help
 #   mu test
 #   mu test file1.mu
-#   CXXFLAGS=-g mu test file1.mu  # run only tests in file1.mu