Skip to content
Closed
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
18 changes: 11 additions & 7 deletions scripts/cibw_before_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,25 @@ GMP_VERSION=6.3.0
GMP_DIR=gmp-${GMP_VERSION}
GMP_URL=https://ftp.gnu.org/gnu/gmp/${GMP_DIR}.tar.xz

GMP_URL=https://gmplib.org/download/snapshot/gmp-next/gmp-6.3.0-20250919151842.tar.zst

download ${GMP_URL}
tar --extract --file ${GMP_DIR}.tar.xz
cd ${GMP_DIR}
#tar --extract --file ${GMP_DIR}.tar.xz
tar xf gmp-6.3.0-20250919151842.tar.zst
#cd ${GMP_DIR}
cd gmp-6.3.0-20250919151842/

for f in ../scripts/*.diff
do
patch --strip 1 < $f
done
#for f in ../scripts/*.diff
#do
# patch --strip 1 < $f
#done

CONFIG_ARGS="--enable-shared --disable-static --with-pic --disable-alloca --prefix=$PREFIX"
if [ "$OSTYPE" = "cygwin" ]
then
if [ "${RUNNER_ARCH}" = "ARM64" ]
then
autoreconf -fi
# autoreconf -fi
CONFIG_ARGS="${CONFIG_ARGS} --disable-assembly"
else
CONFIG_ARGS="${CONFIG_ARGS} --enable-fat"
Expand Down