From e45d07cb1d98dd1a2112a9358373ae9f0155ad02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sat, 29 Sep 2018 22:44:35 -0600 Subject: [PATCH] Split the build script --- build.sh | 12 ++---------- build0.sh | 11 +++++++++++ build1.sh | 9 +++++++++ 3 files changed, 22 insertions(+), 10 deletions(-) create mode 100755 build0.sh create mode 100755 build1.sh diff --git a/build.sh b/build.sh index 05fa51bae2..884738ee4b 100755 --- a/build.sh +++ b/build.sh @@ -3,14 +3,6 @@ set -e set -x -# Generate a Fortran AST from Fortran.asdl -python grammar/asdl_py.py +./build0.sh -# Generate a parse tree from fortran.g4 -antlr4="java org.antlr.v4.Tool" -(cd grammar; $antlr4 -Dlanguage=Python3 -no-listener -visitor fortran.g4 -o ../liblfort/parser) - -# Compile LFort runtime library -CFLAGS="-Wall -g" -gcc $CFLAGS -o lfort_intrinsics.o -c lfort_intrinsics.c -ar rcs liblfort.a lfort_intrinsics.o +./build1.sh diff --git a/build0.sh b/build0.sh new file mode 100755 index 0000000000..4c9c87ce42 --- /dev/null +++ b/build0.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e +set -x + +# Generate a Fortran AST from Fortran.asdl +python grammar/asdl_py.py + +# Generate a parse tree from fortran.g4 +antlr4="java org.antlr.v4.Tool" +(cd grammar; $antlr4 -Dlanguage=Python3 -no-listener -visitor fortran.g4 -o ../liblfort/parser) diff --git a/build1.sh b/build1.sh new file mode 100755 index 0000000000..59bd720eb9 --- /dev/null +++ b/build1.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e +set -x + +# Compile LFort runtime library +CFLAGS="-Wall -g" +gcc $CFLAGS -o lfort_intrinsics.o -c lfort_intrinsics.c +ar rcs liblfort.a lfort_intrinsics.o