From daa214478a7c09a996aae7141054d12a481bb392 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 31 Mar 2017 08:00:28 -0700 Subject: 3807 Handle CFLAGS like "-g -O3 -pg" while compiling. --- build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build b/build index abd8cded..309b53d5 100755 --- a/build +++ b/build @@ -19,9 +19,9 @@ UNTIL_LAYER=${2:-zzz} # otherwise you'll see spurious messages about files being updated # risk: a file may unnecessarily update without changes, causing unnecessary work downstream -test $CXX || export CXX=c++ -test $CC || export CC=cc -test $CFLAGS || export CFLAGS="-g -O3" +test "$CXX" || export CXX=c++ +test "$CC" || export CC=cc +test "$CFLAGS" || export CFLAGS="-g -O3" export CFLAGS="$CFLAGS -Wall -Wextra -ftrapv -fno-strict-aliasing" # return 1 if $1 is older than _any_ of the remaining args -- cgit 1.4.1-2-gfad0