Skip to content

Commit e15f810

Browse files
authored
Avoid spurious version queries and associated expr errors in the NOFORTRAN case
1 parent 2847636 commit e15f810

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)