Skip to content

Commit

Permalink
build.sh: improved for other compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
vmagnin committed Oct 30, 2021
1 parent 23c301c commit 94fac6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -eu

# Default compiler can be overrided, for example:
# $ GFC='gfortran-8' ./build.sh
# $ FC='gfortran-8' ./build.sh
# Default:
: ${FC="gfortran"}

Expand All @@ -15,4 +15,6 @@ fi

rm -f *.mod

"${FC}" -Wall -Wextra -pedantic -std=f2008 -O2 src/taptempo.f90 app/main.f90 -o build/taptempo
"${FC}" src/taptempo.f90 app/main.f90 -o build/taptempo

rm -f *.mod

0 comments on commit 94fac6c

Please sign in to comment.