Skip to content

Commit 0053452

Browse files
authored
Merge pull request #3747 from martin-frbg/issue3746
Avoid spurious calls and warnings when NOFORTRAN is set
2 parents 2847636 + e15f810 commit 0053452

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile.x86_64

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ ifeq ($(C_COMPILER), CLANG)
143143
CCOMMON_OPT += -mavx2
144144
endif
145145
endif
146+
ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
146147
ifeq ($(F_COMPILER), GFORTRAN)
147148
# AVX2 support was added in 4.7.0
148149
GCCVERSIONGTEQ4 := $(shell expr `$(FC) -dumpversion | cut -f1 -d.` \>= 4)
@@ -159,6 +160,7 @@ endif
159160
endif
160161
endif
161162
endif
163+
endif
162164

163165
endif
164166

0 commit comments

Comments
 (0)