| # Complete Surelog build script (Only builds the release executable) |
| echo "Building Surelog" |
| |
| echo "Generating Antlr parser" |
| cd ../G4 |
| ant compile_cpp |
| ant copy_cpp |
| cd ../SVIncCompil |
| |
| echo "Removing previous build" |
| rm -rf build/Release; |
| chmod 777 -Rf dist/Release; rm -rf dist/Release; |
| |
| 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 |
| |
| export CXX=`which g++-7` |
| export CC=`which gcc-7` |
| |
| echo "Make" |
| make CONF=Release -j 4; |
| echo "Done Building Surelog" |
| |
| echo "Run Tests" |
| ./release.tcl "release tcmalloc" ; |
| cd Testcases/ ; |
| ./regression.tcl show_diff |
| |
| echo "End build" |