File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1087,8 +1087,9 @@ endif
10871087endif
10881088endif
10891089
1090- ifeq ($(F_COMPILER), GFORTRAN)
1090+ ifeq ($(F_COMPILER), $(filter $(F_COMPILER), GFORTRAN FLANGNEW) )
10911091CCOMMON_OPT += -DF_INTERFACE_GFORT
1092+ ifeq ($(F_COMPILER), GFORTRAN)
10921093FCOMMON_OPT += -Wall
10931094# make single-threaded LAPACK calls thread-safe #1847
10941095FCOMMON_OPT += -frecursive
@@ -1102,6 +1103,7 @@ EXTRALIB += -lgfortran
11021103endif
11031104endif
11041105endif
1106+ endif
11051107ifdef NO_BINARY_MODE
11061108ifeq ($(ARCH), $(filter $(ARCH),mips64))
11071109ifdef BINARY64
Original file line number Diff line number Diff line change @@ -101,7 +101,14 @@ else
101101 * flang* )
102102 vendor=FLANG
103103 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+ ;;
105112 * ifort* |* ifx* )
106113 vendor=INTEL
107114 openmp=' -fopenmp'
You can’t perform that action at this time.
0 commit comments