Skip to content

Commit 54c2a7d

Browse files
committed
fix(ci): use GitHub mirror for MPFR
1 parent 503fce7 commit 54c2a7d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/build_dependencies_unix.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,13 @@ else
273273
echo --------------------------------------------
274274
echo
275275

276-
curl -O https://ftp.gnu.org/gnu/mpfr/mpfr-$MPFRVER.tar.gz
276+
if [ $USE_GMP_GITHUB_MIRROR = "yes" ]; then
277+
git clone https://github.com/oscarbenjamin/gmp_mirror.git
278+
cp gmp_mirror/mpfr-$MPFRVER.tar.xz .
279+
else
280+
curl -O https://ftp.gnu.org/gnu/mpfr/mpfr-$MPFRVER.tar.gz
281+
fi
282+
277283
tar xf mpfr-$MPFRVER.tar.gz
278284
cd mpfr-$MPFRVER
279285
./configure --prefix=$PREFIX\

0 commit comments

Comments
 (0)