File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1087,8 +1087,9 @@ endif
1087
1087
endif
1088
1088
endif
1089
1089
1090
- ifeq ($(F_COMPILER), GFORTRAN)
1090
+ ifeq ($(F_COMPILER), $(filter $(F_COMPILER), GFORTRAN FLANGNEW) )
1091
1091
CCOMMON_OPT += -DF_INTERFACE_GFORT
1092
+ ifeq ($(F_COMPILER), GFORTRAN)
1092
1093
FCOMMON_OPT += -Wall
1093
1094
# make single-threaded LAPACK calls thread-safe #1847
1094
1095
FCOMMON_OPT += -frecursive
@@ -1102,6 +1103,7 @@ EXTRALIB += -lgfortran
1102
1103
endif
1103
1104
endif
1104
1105
endif
1106
+ endif
1105
1107
ifdef NO_BINARY_MODE
1106
1108
ifeq ($(ARCH), $(filter $(ARCH),mips64))
1107
1109
ifdef BINARY64
Original file line number Diff line number Diff line change @@ -101,7 +101,14 @@ else
101
101
* flang* )
102
102
vendor=FLANG
103
103
openmp=' -fopenmp'
104
- ;;
104
+ data=` $compiler -v 2>&1 > /dev/null `
105
+ v=" ${data#* version * } "
106
+ v=" ${v%%* .} "
107
+ major=" ${v%% .* } "
108
+ if [ " $major " -ge 17 ]; then
109
+ vendor=FLANGNEW
110
+ fi
111
+ ;;
105
112
* ifort* |* ifx* )
106
113
vendor=INTEL
107
114
openmp=' -fopenmp'
You can’t perform that action at this time.
0 commit comments