Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GMP & MPC versions in scripts #425

Merged
merged 2 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 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.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
7 changes: 2 additions & 5 deletions scripts/before_ci_build_apple_silicon.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
set -e -x

GMP_VERSION=6.2.1
GMP_VERSION=6.3.0
MPFR_VERSION=4.2.1
MPC_VERSION=1.2.1
MPC_VERSION=1.3.1
export CPPFLAGS=" --target=arm64-apple-macos11"
export LDFLAGS=" -arch arm64"
EXTRA="--build=x86_64-apple-darwin --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
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