add .gitignore
[swift-upb.git] / mfold / compile.default.sh
1 cd swift || exit 1
2 if [ ! -d bin ]; then mkdir bin; fi
3 git pull || exit 2
4 rm bin/swift-pg bin/swift-o3 bin/swift-dbg
5
6 g++ -I. *.cpp compat/*.cpp ext/seq_picker.cpp -pg -o bin/swift-pg &
7 g++ -I. *.cpp compat/*.cpp ext/seq_picker.cpp -g -o bin/swift-dbg &
8 g++ -I. *.cpp compat/*.cpp ext/seq_picker.cpp -O3 -o bin/swift-o3 &
9 wait
10 if [ ! -e bin/swift-pg ]; then exit 4; fi
11 if [ ! -e bin/swift-dbg ]; then exit 5; fi
12 if [ ! -e bin/swift-o3 ]; then exit 6; fi