Skip to content

Commit

Permalink
Update GMP to 6.3.0 in build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Sep 5, 2023
1 parent c249e7a commit 482de07
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 527 deletions.
4 changes: 1 addition & 3 deletions scripts/before_ci_build.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
set -e -x

GMP_VERSION=6.2.1
GMP_VERSION=6.3.0
MPFR_VERSION=4.2.1
MPC_VERSION=1.3.1
if [ ! -f finish_before_ci_build ]; then
if [[ "$OSTYPE" == "linux-gnu" || "$OSTYPE" == "linux-musl" || "$OSTYPE" == "darwin"* ]]; then
curl -s -O https://ftp.gnu.org/gnu/gmp/gmp-${GMP_VERSION}.tar.xz
tar -xf gmp-${GMP_VERSION}.tar.xz
cd gmp-${GMP_VERSION}
patch -N -Z -p0 < ../scripts/patch-arm64.diff && cd ..
cd gmp-${GMP_VERSION} && ./configure --enable-fat && make -j4 && make install && cd ../
curl -s -O https://ftp.gnu.org/gnu/mpfr/mpfr-${MPFR_VERSION}.tar.gz
tar -xf mpfr-${MPFR_VERSION}.tar.gz
Expand Down
5 changes: 1 addition & 4 deletions scripts/before_ci_build_apple_silicon.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -e -x

GMP_VERSION=6.2.1
GMP_VERSION=6.3.0
MPFR_VERSION=4.2.1
MPC_VERSION=1.3.1
export CPPFLAGS=" --target=arm64-apple-macos11"
Expand All @@ -10,9 +10,6 @@ if [ ! -f finish_before_ci_build ]; then
if [[ "$OSTYPE" == "linux-gnu" || "$OSTYPE" == "linux-musl" || "$OSTYPE" == "darwin"* ]]; then
curl -O https://ftp.gnu.org/gnu/gmp/gmp-${GMP_VERSION}.tar.xz
tar -xf gmp-${GMP_VERSION}.tar.xz
cd gmp-${GMP_VERSION}
patch -N -Z -p0 < ../scripts/patch-arm64.diff
cd ..
# need to set host to the oldest triple to avoid building binaries
# that use build machine micro-architecure. configfsf.guess is the one that
# comes with autotools which is micro-architecture agnostic.
Expand Down
Loading

0 comments on commit 482de07

Please sign in to comment.