Skip to content

Commit f2c9ae9

Browse files
authored
Identify the new generation of flang that comes with LLVM17
1 parent c2f4bdb commit f2c9ae9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

f_check

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)