diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2018-03-22 21:52:35 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2018-03-22 21:52:35 -0700 |
commit | 34514ae8a6635915143e0a7fd1e523eb51b4a91d (patch) | |
tree | 1ba0bc4629b2c211967858eee019c8c2d8ac265c /build3 | |
parent | 6b1bd1ffadac8e6250600501ab9f872530d1da1e (diff) | |
download | mu-34514ae8a6635915143e0a7fd1e523eb51b4a91d.tar.gz |
4233 - no real difference between -O2 or -O3
Neither in compile time, nor in the performance of the generated code. (Triggered by https://developers.redhat.com/blog/2018/03/21/compiler-and-linker-flags-gcc)
Diffstat (limited to 'build3')
-rwxr-xr-x | build3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build3 b/build3 index 2563bdfe..0d997f6f 100755 --- a/build3 +++ b/build3 @@ -9,7 +9,7 @@ set -e # stop immediately on error # $ CFLAGS=-g ./build3 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: @@ -138,7 +138,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 } |