Identify the new generation of flang that comes with LLVM17

This commit is contained in:
Martin Kroeker
2023-08-04 15:31:03 +02:00
committed by GitHub
parent c2f4bdbbb4
commit f2c9ae9c33

View File

@@ -101,7 +101,14 @@ else
*flang*)
vendor=FLANG
openmp='-fopenmp'
;;
data=`$compiler -v 2>&1 > /dev/null `
v="${data#*version *}"
v="${v%%*.}"
major="${v%%.*}"
if [ "$major" -ge 17 ]; then
vendor=FLANGNEW
fi
;;
*ifort*|*ifx*)
vendor=INTEL
openmp='-fopenmp'