Avoid spurious version queries and associated expr errors in the NOFORTRAN case

This commit is contained in:
Martin Kroeker
2022-08-29 17:31:57 +02:00
committed by GitHub
parent 2847636ecd
commit e15f810a02

View File

@@ -143,6 +143,7 @@ ifeq ($(C_COMPILER), CLANG)
CCOMMON_OPT += -mavx2
endif
endif
ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
ifeq ($(F_COMPILER), GFORTRAN)
# AVX2 support was added in 4.7.0
GCCVERSIONGTEQ4 := $(shell expr `$(FC) -dumpversion | cut -f1 -d.` \>= 4)
@@ -159,6 +160,7 @@ endif
endif
endif
endif
endif
endif