Skip to content

Commit 301e2ec

Browse files
authored
Cray Fortran uses -O in combinations like -O omp so don't filter that out
1 parent 66c2c41 commit 301e2ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ export NO_LAPACK
3535
export C_LAPACK
3636
endif
3737

38+
ifeq ($(F_COMPILER),CRAY)
39+
LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast -Og -Os,$(LAPACK_FFLAGS))
40+
else
3841
LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast -O -Og -Os,$(LAPACK_FFLAGS))
42+
endif
3943

4044
SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench cpp_thread_test
4145

0 commit comments

Comments
 (0)