about summary refs log tree commit diff stats
path: root/build0
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2018-03-22 21:52:35 -0700
committerKartik K. Agaram <vc@akkartik.com>2018-03-22 21:52:35 -0700
commit34514ae8a6635915143e0a7fd1e523eb51b4a91d (patch)
tree1ba0bc4629b2c211967858eee019c8c2d8ac265c /build0
parent6b1bd1ffadac8e6250600501ab9f872530d1da1e (diff)
downloadmu-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 'build0')
-rwxr-xr-xbuild08
1 files changed, 4 insertions, 4 deletions
diff --git a/build0 b/build0
index efcbfcd3..7cc6fc95 100755
--- a/build0
+++ b/build0
@@ -21,12 +21,12 @@ cd tangle
   grep -h "^[[:space:]]*void test_" [0-9]*.cc  |sed 's/^\s*void \(.*\)() {$/\1,/'  > test_list
   # }
   # Now that we have all the _lists, compile 'tangle'
-  g++ -g -O3 boot.cc -o tangle
+  g++ -g -O2 boot.cc -o tangle
 cd ..
 
 cd termbox
-  gcc -g -O3 -c termbox.c
-  gcc -g -O3 -c utf8.c
+  gcc -g -O2 -c termbox.c
+  gcc -g -O2 -c utf8.c
   ar rcs libtermbox.a *.o
 cd ..
 
@@ -38,6 +38,6 @@ cd ..
 grep -h "^[^[:space:]#].*) {$" mu.cc  |grep -v ":.*("  |sed 's/ {.*/;/'  > function_list
 # auto-generate list of tests to run
 grep -h "^\s*void test_" mu.cc  |sed 's/^\s*void \(.*\)() {.*/\1,/'  > test_list
-g++ -g -O3 mu.cc termbox/libtermbox.a -o mu_bin
+g++ -g -O2 mu.cc termbox/libtermbox.a -o mu_bin
 
 cat [0-9]*.mu > core.mu