Skip to content

Commit

Permalink
apply hdf5 build fix to linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mjreno authored and mjreno committed Aug 29, 2024
1 parent d9d6092 commit 0f7a782
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -194,19 +194,20 @@ endif

# GCC profile options need to be netcdf aware due to HDF5 issue
if fc_id == 'gcc'
if with_netcdf and build_machine.system() == 'darwin'
#if with_netcdf and build_machine.system() == 'darwin'
if with_netcdf
# HDF5 1.14.3 invalid fpe trap issue: https://github.com/HDFGroup/hdf5/issues/3831
if profile == 'release'
compile_args += ['-ffpe-summary=overflow', '-ffpe-trap=overflow,zero']
elif profile == 'develop'
compile_args += ['-fcheck=all', '-ffpe-trap=overflow,zero']
endif
else
if profile == 'release'
compile_args += ['-ffpe-summary=overflow', '-ffpe-trap=overflow,zero,invalid']
elif profile == 'develop'
compile_args += ['-fcheck=all', '-ffpe-trap=overflow,zero,invalid']
endif
#else
# if profile == 'release'
# compile_args += ['-ffpe-summary=overflow', '-ffpe-trap=overflow,zero,invalid']
# elif profile == 'develop'
# compile_args += ['-fcheck=all', '-ffpe-trap=overflow,zero,invalid']
# endif
endif
endif

Expand Down

0 comments on commit 0f7a782

Please sign in to comment.