File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ SKIP_MPFR=no
2121PATCH_GMP_C23=no
2222PATCH_LDD=no
2323PATCH_IMMINTRIN=no
24+ GMP_FAT_ARG=" --enable-fat"
25+ GMP_ASSEMBLY_ARG=
2426HOST_ARG=
2527
2628USE_GMP=gmp
4244 echo " --host <HOST> - set the host (target) for GMP build"
4345 echo " --skip-gmp - skip building GMP"
4446 echo " --skip-mpfr - skip building MPFR"
47+ echo " --disable-assembly - disable GMP assembly routines"
4548 echo " --patch-ldd - patch flint shared linking for mingw on arm64"
4649 echo " --patch-immintrin - patch flint arm64 msvc header to avoid immintrin.h"
4750 echo
9093 SKIP_MPFR=yes
9194 shift
9295 ;;
96+ --disable-assembly)
97+ # GMP does not allow --enable-fat together with --disable-assembly.
98+ GMP_FAT_ARG=
99+ GMP_ASSEMBLY_ARG=" --disable-assembly"
100+ shift
101+ ;;
93102 --patch-gmp-arm64)
94103 # Needed only for GMP 6.2.1 on OSX arm64 (Apple M1) hardware
95104 # As of GMP 6.3.0 this patch is no longer needed
@@ -207,7 +216,8 @@ if [ "$USE_GMP" = "gmp" ]; then
207216 ./configfsf.guess
208217
209218 ./configure --prefix=$PREFIX \
210- --enable-fat\
219+ $GMP_FAT_ARG \
220+ $GMP_ASSEMBLY_ARG \
211221 --enable-shared=yes\
212222 --enable-static=no\
213223 --host=$HOST_ARG
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ pacman -S --noconfirm \
1818bin/cibw_before_all_windows.sh \
1919 arm64 \
2020 --use-gmp-github-mirror \
21+ --disable-assembly \
2122 --host aarch64-w64-mingw32 \
2223 --patch-C23 \
2324 --patch-ldd \
You can’t perform that action at this time.
0 commit comments