diff options
| author | Michał Górny <mgorny@quansight.com> | 2025-07-11 19:20:17 +0200 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2025-07-14 15:05:10 -0400 |
| commit | 23e4901088cc4690d8ffbef9796421e42d77f5bd (patch) | |
| tree | da33cf1c7dbdc0579aec2b81ca7129ec1eeac76b | |
| parent | 27c5ac36c841b047391fae9378684e06dcffea93 (diff) | |
| download | meson-23e4901088cc4690d8ffbef9796421e42d77f5bd.tar.gz | |
hdf5: Skip failing Fortran config-tool test when h5fc is broken
Skip the hdf5 Fortran config-tool test when running on CI and h5fc looks
broken. This is needed due to upstream bug that h5fc does not include
include paths when built via CMake, that currently affects at least Arch
Linux and Gentoo.
Bug: https://github.com/HDFGroup/hdf5/issues/5660
Signed-off-by: Michał Górny <mgorny@quansight.com>
| -rw-r--r-- | test cases/frameworks/25 hdf5/meson.build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test cases/frameworks/25 hdf5/meson.build b/test cases/frameworks/25 hdf5/meson.build index 38e001202..095c63f66 100644 --- a/test cases/frameworks/25 hdf5/meson.build +++ b/test cases/frameworks/25 hdf5/meson.build @@ -28,6 +28,7 @@ test_fortran = add_languages('fortran', required: false) if test_fortran cpp = meson.get_compiler('cpp') fc = meson.get_compiler('fortran') + fs = import('fs') if host_machine.system() == 'darwin' and cpp.get_id() == 'clang' and fc.get_id() == 'gcc' # Search paths don't work correctly here and -lgfortran doesn't work @@ -35,6 +36,10 @@ if test_fortran elif host_machine.system() == 'windows' and cpp.get_id() != 'gcc' and fc.get_id() == 'gcc' # mixing gfortran with non-gcc doesn't work on windows test_fortran = false + elif fs.is_dir('/ci') and '-I' not in run_command('h5fc', '-show').stdout() + # h5fc does not include needed -I flags when HDF5 is built using CMake + # https://github.com/HDFGroup/hdf5/issues/5660 + test_fortran = false endif # --- Fortran tests |
