Skip to content

Commit

Permalink
Identify the new generation of flang that comes with LLVM17
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Aug 4, 2023
1 parent c2f4bdb commit f2c9ae9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion f_check
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit f2c9ae9

Please sign in to comment.