Skip to content

Commit 45288eb

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

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

bin/build_dependencies_unix.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,15 @@ 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+
if [ ! -d "gmp_mirror" ] ; then
278+
git clone https://github.com/oscarbenjamin/gmp_mirror.git
279+
fi
280+
cp gmp_mirror/mpfr-$MPFRVER.tar.gz .
281+
else
282+
curl -O https://ftp.gnu.org/gnu/mpfr/mpfr-$MPFRVER.tar.gz
283+
fi
284+
277285
tar xf mpfr-$MPFRVER.tar.gz
278286
cd mpfr-$MPFRVER
279287
./configure --prefix=$PREFIX\

0 commit comments

Comments
 (0)