Skip to content

Commit

Permalink
distinguish classic flang from flang-new in name based recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Jan 30, 2025
1 parent 5acdc0f commit d795a1a
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 @@ -244,7 +244,14 @@ else
openmp='-mp'
;;
*flang*)
vendor=FLANGNEW
vendor=FLANG
data=`$compiler -v 2>&1 > /dev/null`
v="${data#*version *}"
v="${v%%*.}"
major="${v%%.*}"
if [ "$major" -ge 17 ]; then
vendor=FLANGNEW
fi
bu=_
openmp='-fopenmp'
;;
Expand Down

0 comments on commit d795a1a

Please sign in to comment.