about summary refs log tree commit diff stats
path: root/build2
diff options
context:
space:
mode:
Diffstat (limited to 'build2')
-rwxr-xr-xbuild24
1 files changed, 2 insertions, 2 deletions
diff --git a/build2 b/build2
index beb536df..2d4703df 100755
--- a/build2
+++ b/build2
@@ -12,7 +12,7 @@ set -e  # stop immediately on error
 #   $ CFLAGS=-g ./build2
 test "$CXX" || export CXX=c++
 test "$CC" || export CC=cc
-test "$CFLAGS" || export CFLAGS="-g -O3"
+test "$CFLAGS" || export CFLAGS="-g -O2"
 export CFLAGS="$CFLAGS -Wall -Wextra -ftrapv -fno-strict-aliasing"
 
 # Outline:
@@ -113,7 +113,7 @@ older_than mu.cc $LAYERS enumerate/enumerate tangle/tangle && {
 }
 
 older_than cleave/cleave cleave/cleave.cc && {
-  $CXX -O3 -Wall -Wextra -fno-strict-aliasing cleave/cleave.cc -o cleave/cleave
+  $CXX $CFLAGS cleave/cleave.cc -o cleave/cleave
   rm -rf .build
 }