Skip to content

Commit a9c964e

Browse files
ggouaillardetjanjust
authored andcommitted
configury: add Fortran IGNORE_TKR check for LLVM 19
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]> (cherry picked from commit 0bc995f)
1 parent 948d5a4 commit a9c964e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

config/ompi_fortran_check_ignore_tkr.m4

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ AC_DEFUN([_OMPI_FORTRAN_CHECK_IGNORE_TKR], [
8484
[!GCC\$ ATTRIBUTES NO_ARG_CHECK ::], [type(*), dimension(*)],
8585
[!GCC\$ ATTRIBUTES NO_ARG_CHECK],
8686
[internal_ignore_tkr_happy=1], [internal_ignore_tkr_happy=0])])
87+
# LLVM compilers
88+
AS_IF([test $internal_ignore_tkr_happy -eq 0],
89+
[OMPI_FORTRAN_CHECK_IGNORE_TKR_SUB(
90+
[!DIR\$ IGNORE_TKR], [type(*)],
91+
[!DIR\$ IGNORE_TKR],
92+
[internal_ignore_tkr_happy=1], [internal_ignore_tkr_happy=0])])
8793
# Intel compilers
8894
AS_IF([test $internal_ignore_tkr_happy -eq 0],
8995
[OMPI_FORTRAN_CHECK_IGNORE_TKR_SUB(

0 commit comments

Comments
 (0)