Skip to content

Commit

Permalink
configury: add Fortran IGNORE_TKR check for LLVM 19
Browse files Browse the repository at this point in the history
Try the !DIR$ IGNORE_TKR directive and the type(*)
type in order to support upcoming LLVM 19 flang compiler.

Thanks Paul Osmialowski for the report and suggesting the solution.

Signed-off-by: Gilles Gouaillardet <[email protected]>
  • Loading branch information
ggouaillardet committed May 2, 2024
1 parent 8c601e1 commit 0bc995f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/ompi_fortran_check_ignore_tkr.m4
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ AC_DEFUN([_OMPI_FORTRAN_CHECK_IGNORE_TKR], [
[!GCC\$ ATTRIBUTES NO_ARG_CHECK ::], [type(*), dimension(*)],
[!GCC\$ ATTRIBUTES NO_ARG_CHECK],
[internal_ignore_tkr_happy=1], [internal_ignore_tkr_happy=0])])
# LLVM compilers
AS_IF([test $internal_ignore_tkr_happy -eq 0],
[OMPI_FORTRAN_CHECK_IGNORE_TKR_SUB(
[!DIR\$ IGNORE_TKR], [type(*)],
[!DIR\$ IGNORE_TKR],
[internal_ignore_tkr_happy=1], [internal_ignore_tkr_happy=0])])
# Intel compilers
AS_IF([test $internal_ignore_tkr_happy -eq 0],
[OMPI_FORTRAN_CHECK_IGNORE_TKR_SUB(
Expand Down

0 comments on commit 0bc995f

Please sign in to comment.