Support for Flang and ARM HPC compiler

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Support for Flang and ARM HPC compiler

pawel.osmialowski
Hello all,

This patch is a part of the cross-project set of patches
that soon will be sent to all of the relevant GNU Autotools
components: gnulib, autoconf, automake and libtool.

The purpose of this is to add awareness of the new LLVM Fortran
compiler (Flang) along with LLVM-derived ARM HPC Compilers.

These new compilers are recognized by their executable binary
names: flang, armflang, armclang, armclang++

Without those patches 'configure' script generates wrong set
of command-line flags.

Best regards,
Paul Osmialowski

Reply | Threaded
Open this post in threaded view
|

[PATCH] Support for Flang and ARM HPC compiler

pawel.osmialowski
From: Paul Osmialowski <[hidden email]>

Signed-off-by: Paul Osmialowski <[hidden email]>
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5055780d1..995d23e80 100644
--- a/configure.ac
+++ b/configure.ac
@@ -463,13 +463,13 @@ AS_IF([test x"$GXX" = x"yes"], [am_CXX_is_GNU=yes], [am_CXX_is_GNU=no])
 
 _AM_COMPILER_CAN_FAIL([AC_PROG_FC(dnl
   [xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor] dnl
-  [xlf90 f90 pgf90 pghpf epcf90 g95 gfortran])],
+  [xlf90 f90 armflang flang pgf90 pghpf epcf90 g95 gfortran])],
   [FC=false; _AM_SKIP_COMP_TESTS([Fortran])])
 
 AS_IF([test x"$GFC" = x"yes"], [am_FC_is_GNU=yes], [am_FC_is_GNU=no])
 
 _AM_COMPILER_CAN_FAIL([AC_PROG_F77(dnl
-  [xlf f77 frt pgf77 cf77 fort77 fl32 af77 g77 gfortran])],
+  [xlf f77 frt pgf77 cf77 fort77 fl32 af77 g77 armflang flang gfortran])],
   [F77=false; _AM_SKIP_COMP_TESTS([Fortran 77])])
 
 AS_IF([test x"$G77" = x"yes"], [am_F77_is_GNU=yes], [am_F77_is_GNU=no])
--
2.11.0 (Apple Git-81)


Reply | Threaded
Open this post in threaded view
|

Re: Support for Flang and ARM HPC compiler

Mathieu Lirzin
In reply to this post by pawel.osmialowski
Hello,

[hidden email] writes:

> This patch is a part of the cross-project set of patches
> that soon will be sent to all of the relevant GNU Autotools
> components: gnulib, autoconf, automake and libtool.
>
> The purpose of this is to add awareness of the new LLVM Fortran
> compiler (Flang) along with LLVM-derived ARM HPC Compilers.
>
> These new compilers are recognized by their executable binary
> names: flang, armflang, armclang, armclang++
>
> Without those patches 'configure' script generates wrong set
> of command-line flags.

Since the Fortran compiler list is actually maintained in Autoconf, I
prefer waiting for the review to be done there before applying this
patch in Automake.

Let me know when that's the case.

Thanks.

--
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37

[1] http://lists.gnu.org/archive/html/autoconf-patches/2017-08/msg00015.html