Skip to content

Commit

Permalink
HYPRE: Require MPItrampoline 5 (#5220)
Browse files Browse the repository at this point in the history
Also simplify configuring MPItrampoline.
  • Loading branch information
eschnett committed Jul 25, 2022
1 parent 31eb0ac commit 7859840
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions H/HYPRE/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,22 @@ const YGGDRASIL_DIR = "../.."
include(joinpath(YGGDRASIL_DIR, "platforms", "mpi.jl"))

name = "HYPRE"
version = v"2.23.0"
version = v"2.23.1"
hypre_version = v"2.23.0"

# Collection of sources required to complete build
sources = [
ArchiveSource("https://github.com/hypre-space/hypre/archive/refs/tags/v$(version).tar.gz", "8a9f9fb6f65531b77e4c319bf35bfc9d34bf529c36afe08837f56b635ac052e2")
ArchiveSource("https://github.com/hypre-space/hypre/archive/refs/tags/v$(hypre_version).tar.gz",
"8a9f9fb6f65531b77e4c319bf35bfc9d34bf529c36afe08837f56b635ac052e2")
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/hypre-*
cd src/
cd src
mkdir build
cd build/
cd build
CMAKE_FLAGS=()
Expand All @@ -36,11 +38,6 @@ if [[ "$target" == x86_64-w64-mingw32 ]]; then
fi
fi
# MPItrampoline requires C99 (but this doesn't work on Windows)
if [[ "$target" != *-mingw32* ]]; then
export CFLAGS="${CFLAGS} -std=c99"
fi
cmake .. \
-DCMAKE_INSTALL_PREFIX=$prefix \
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
Expand Down

0 comments on commit 7859840

Please sign in to comment.