Skip to content

Commit

Permalink
Restore patch for mp_bitcnt_t on M$ Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Mar 24, 2024
1 parent 159f575 commit f327029
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/cibw_before_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ PREFIX="$(pwd)/.local/"
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}
# Uncomment the following lines to change the mp_bitcnt_t type to "unsigned long long int"
if [ "$OSTYPE" = "msys" ]
then
sed -i 's/typedef\s*unsigned\s*long\s*int\s*mp_bitcnt_t/typedef unsigned long long int mp_bitcnt_t\n/g' gmp.h
sed -i 's/mpz_srcptr,\s*unsigned\s*long\s*int/mpz_srcptr, mp_bitcnt_t/g' mpz/millerrabin.c
fi
# config.guess uses microarchitecture and configfsf.guess doesn't
# We replace config.guess with configfsf.guess to avoid microarchitecture
# specific code in common code.
Expand Down

0 comments on commit f327029

Please sign in to comment.