diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-07-25 13:40:42 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-07-25 13:59:17 -0700 |
commit | ecbdc925d43f489e5c5b101900db88f9d260efe7 (patch) | |
tree | 626f31eebe26ccdc527c5d999ac87375e472bb88 /build1 | |
parent | 34e1828162deec95b1913b420e7aee605d68fa82 (diff) | |
download | mu-ecbdc925d43f489e5c5b101900db88f9d260efe7.tar.gz |
5476
Fix CI. Also kill compiler version mismatch bugs once and for all.
Diffstat (limited to 'build1')
-rwxr-xr-x | build1 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/build1 b/build1 index 53b54899..74a2afe7 100755 --- a/build1 +++ b/build1 @@ -14,13 +14,14 @@ test "$CXX" || export CXX=c++ test "$CC" || export CC=cc test "$CFLAGS" || export CFLAGS="-g -O2" export CFLAGS="$CFLAGS -Wall -Wextra -ftrapv -fno-strict-aliasing" +export CXXFLAGS="-std=c++98 $CFLAGS" # CI has an ancient version; don't expect recent dialects # Outline: # [0-9]*.cc -> mu.cc -> mu_bin # (layers) | | # tangle $CXX -$CXX $CFLAGS enumerate/enumerate.cc -o enumerate/enumerate +$CXX $CXXFLAGS enumerate/enumerate.cc -o enumerate/enumerate cd tangle # auto-generate various lists (ending in '_list' by convention) { @@ -40,7 +41,7 @@ cd tangle grep -h "^\s*void test_" [0-9]*.cc |sed 's/^\s*void \(.*\)() {.*/"\1",/' > test_name_list # } # Now that we have all the _lists, compile 'tangle' - $CXX $CFLAGS boot.cc -o tangle + $CXX $CXXFLAGS boot.cc -o tangle ./tangle test cd .. @@ -60,7 +61,7 @@ grep -h "^[^[:space:]#].*) {$" mu.cc |grep -v ":.*(" |sed 's/ {.*/;/' > funct # auto-generate list of tests to run grep -h "^\s*void test_" mu.cc |sed 's/^\s*void \(.*\)() {.*/\1,/' > test_list grep -h "^\s*void test_" mu.cc |sed 's/^\s*void \(.*\)() {.*/"\1",/' > test_name_list -$CXX $CFLAGS mu.cc termbox/libtermbox.a -o mu_bin +$CXX $CXXFLAGS mu.cc termbox/libtermbox.a -o mu_bin ## [0-9]*.mu -> core.mu |