Skip to content

Commit

Permalink
Merge pull request #114 from yzanhua/master
Browse files Browse the repository at this point in the history
Flash-io benchmark configure: add fortran compiler flag to allow type mismatch
  • Loading branch information
wkliao authored Jan 15, 2024
2 parents b516491 + cfb7dc7 commit 0ac184c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarks/FLASH-IO/m4/check_fortran.m4
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ esac])dnl
#
# Known flags:
# NAGWare: -mismatch
# gfortran: -fallow-argument-mismatch
#
AC_DEFUN([_ACX_FC_MISMATCH],
[_AC_FORTRAN_ASSERT()dnl
Expand All @@ -202,7 +203,7 @@ be called with different argument types])
call foo1(a)
call foo1(b)
call foo1(c)]])])
for acx_flag in '' -mismatch; do
for acx_flag in '' -mismatch -fallow-argument-mismatch; do
_AC_LANG_PREFIX[]FLAGS="${acx_save_[]_AC_LANG_PREFIX[]FLAGS} $acx_flag"
AC_COMPILE_IFELSE([], [acx_cache_var=$acx_flag])
test "x$acx_cache_var" != xunknown && break
Expand Down

0 comments on commit 0ac184c

Please sign in to comment.