Browse Source

Identify the new generation of flang that comes with LLVM17

tags/v0.3.24
Martin Kroeker GitHub 2 years ago
parent
commit
f2c9ae9c33
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      f_check

+ 8
- 1
f_check View File

@@ -101,7 +101,14 @@ else
*flang*) *flang*)
vendor=FLANG vendor=FLANG
openmp='-fopenmp' 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*) *ifort*|*ifx*)
vendor=INTEL vendor=INTEL
openmp='-fopenmp' openmp='-fopenmp'


Loading…
Cancel
Save