Skip to content

Commit 3d8b76b

Browse files
committed
Update derecho gnu to -O2, was missing for reasons unknown. Update
the Macros coverage flag logic.
1 parent 1766f55 commit 3d8b76b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

configuration/scripts/machines/Macros.derecho_gnu

+8-5
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ FREEFLAGS := -ffree-form
1111
FFLAGS := -fconvert=big-endian -fbacktrace -ffree-line-length-none -fallow-argument-mismatch
1212
FFLAGS_NOOPT:= -O0
1313

14+
ifeq ($(ICE_COVERAGE), true)
15+
FFLAGS += -O0 -g -fprofile-arcs -ftest-coverage
16+
CFLAGS += -O0 -g -coverage
17+
LDFLAGS += -g -ftest-coverage -fprofile-arcs
18+
else
1419
ifeq ($(ICE_BLDDEBUG), true)
1520
FFLAGS += -O0 -g -fcheck=bounds -finit-real=nan -fimplicit-none -ffpe-trap=invalid,zero,overflow --std f2008
1621
# FFLAGS += -O0 -g -fcheck=all -finit-real=snan -fimplicit-none -ffpe-trap=invalid,zero,overflow
1722
CFLAGS += -O0
23+
else
24+
FFLAGS += -O2
25+
CFLAGS += -O2
1826
endif
19-
20-
ifeq ($(ICE_COVERAGE), true)
21-
FFLAGS += -O0 -g -fprofile-arcs -ftest-coverage
22-
CFLAGS += -O0 -g -coverage
23-
LDFLAGS += -g -ftest-coverage -fprofile-arcs
2427
endif
2528

2629
SCC := gcc

0 commit comments

Comments
 (0)