| #!/bin/bash |
| set -e |
| # Any subsequent(*) commands which fail will cause the shell script to exit immediately |
| |
| # Complete Surelog build script (Only updates PP grammar) |
| |
| export CXX=`which g++` ; export CC=`which gcc` |
| # For Travis build |
| if test -f /usr/bin/g++-7 || test -f /usr/local/bin/g++-7 ; then |
| export CXX=`which g++-7` ; |
| export CC=`which gcc-7` ; |
| fi |
| |
| $CXX --version |
| echo $? |
| |
| echo "Generating Antlr parser" |
| cd ../G4 |
| ant compile_cpp |
| ant copy_pp_cpp |
| cd ../SVIncCompil |
| |
| echo "Generating caching scheme" |
| cd Cache; ./build_fbs.sh; |
| cd ..; |
| |
| echo "Generating code" |
| SourceCompile/generate_parser_listener.tcl |
| API/generate_python_listener_api.tcl |
| API/embed_python_api.tcl |
| |
| echo "Make" |
| make CONF=Release -j 4 GPP=${CXX}; |
| |
| echo "Run Tests" |
| ./release.tcl "release tcmalloc" ; |
| cd Testcases/ ; |
| ./regression.tcl mt=0 |
| |
| echo "End build" |