Recognize LLVM_FLANG a.k.a flang-new

This commit is contained in:
Martin Kroeker 2023-07-03 08:45:25 +02:00 committed by GitHub
parent 4dca7b8666
commit dc76718fe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -44,7 +44,7 @@ if [ -z "$compiler" ]; then
ppuf77 ppuf95 ppuf90 ppuxlf
pathf90 pathf95
pgf95 pgf90 pgf77 pgfortran nvfortran
flang egfortran
flang flang-new egfortran
ifort nagfor ifx ftn crayftn"
for list in $lists; do
@ -100,6 +100,9 @@ else
case "$compiler" in
*flang*)
vendor=FLANG
if ("$compiler" = "flang-new" ]; then
vendor=LLVMFLANG
fi
openmp='-fopenmp'
;;
*ifort*|*ifx*)
@ -223,6 +226,9 @@ else
;;
*flang*)
vendor=FLANG
if ("$compiler" = "flang-new" ]; then
vendor=LLVMFLANG
fi
bu=_
openmp='-fopenmp'
;;