Skip to content

Commit

Permalink
Debug code coverage, opt args
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 19, 2024
1 parent 4bda00e commit 9343497
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/fortran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
exclude:
- os: ubuntu-latest
toolchain: {compiler: gcc, version: 13}
- os: macos-latest
toolchain: {compiler: gcc, version: 12}
- os: macos-latest
toolchain: {compiler: gcc, version: 11}
runs-on: ${{ matrix.os }}

steps:
Expand Down
11 changes: 6 additions & 5 deletions fortran/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
BLUE=\033[0;34m
NC=\033[0m # No Color
FC?=flang-new
COV?=false

ifeq ($(FC),ifort)
opt_args= -Wall -Werror -O2 -march=native -qwholeprogram
opt_args= -Wall -Werror -march=native -qwholeprogram
else ifeq ($(FC),nvfortran)
opt_args= -Wall -Werror -O2 -march=native
opt_args= -Wall -Werror -march=native
else
opt_args= -Wall -Werror -O1 -flto
opt_args= -Wall -Werror -march=native -flto
endif

ifneq ($(COV),false)
cov_args= --coverage
cov_args= -fprofile-arcs -ftest-coverage -O0
else
cov_args=
cov_args= -O2
endif

.PHONY: help
Expand Down

0 comments on commit 9343497

Please sign in to comment.