-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
HDF5_VERSION="1.14.6"
NETCDF_VERSION="4.9.3"
this might be useful, tested patch
cd "hdf5-$HDF5_VERSION"
log "Configuring HDF5 in directory: $(pwd)"
mkdir -p build && cd build
log "Applying wasm FE_INVALID patch to H5Tinit_float.c..."
H5T_FILE="$DEPS_DIR/hdf5-$HDF5_VERSION/src/H5Tinit_float.c"
if [ -f "$H5T_FILE" ]; then
if ! grep -q "ifdef FE_INVALID" "$H5T_FILE"; then
if sed --version >/dev/null 2>&1; then
sed -i '/feclearexcept(FE_INVALID)/i #ifdef FE_INVALID' "$H5T_FILE"
sed -i '/feclearexcept(FE_INVALID)/a #endif' "$H5T_FILE"
else
sed -i '' '/feclearexcept(FE_INVALID)/i\
#ifdef FE_INVALID
' "$H5T_FILE"
sed -i '' '/feclearexcept(FE_INVALID)/a\
#endif
' "$H5T_FILE"
fi
log "Patch applied successfully"
else
log "Patch already applied"
fi
else
error_exit "Could not find $H5T_FILE to apply patch"
fi
log "Running emcmake cmake for HDF5 with FILTER SUPPORT..."
# Set environment variables to help CMake find zlib
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed