Skip to content

Commit a7be3bf

Browse files
committed
Don't use fat build for Windows on ARM64
1 parent 49291df commit a7be3bf

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

bin/build_dependencies_unix.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ set -o errexit
1818

1919
SKIP_GMP=no
2020
SKIP_MPFR=no
21+
FAT_GMP_ARG="--enable-fat"
2122

2223
USE_GMP=gmp
2324
PATCH_GMP_ARM64=no
@@ -37,6 +38,7 @@ do
3738
echo " --host <HOST> - set the host (target) for GMP build"
3839
echo " --skip-gmp - skip building GMP"
3940
echo " --skip-mpfr - skip building MPFR"
41+
echo " --disable-fat - disable building fat binaries"
4042
echo
4143
echo "Legacy options:"
4244
echo " --gmp gmp - build based on GMP (default)"
@@ -83,6 +85,11 @@ do
8385
SKIP_MPFR=yes
8486
shift
8587
;;
88+
--disable-fat)
89+
# Disable building fat binaries
90+
FAT_GMP_ARG="--disable-assembly"
91+
shift
92+
;;
8693
--patch-gmp-arm64)
8794
# Needed only for GMP 6.2.1 on OSX arm64 (Apple M1) hardware
8895
# As of GMP 6.3.0 this patch is no longer needed
@@ -190,7 +197,7 @@ if [ $USE_GMP = "gmp" ]; then
190197
./configfsf.guess
191198

192199
./configure --prefix=$PREFIX\
193-
--enable-fat\
200+
$FAT_GMP_ARG\
194201
--enable-shared=yes\
195202
--enable-static=no\
196203
--host=$HOST_ARG

bin/cibw_before_all_windows_arm64.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pacman -S --noconfirm \
1515
#
1616

1717
bin/build_dependencies_unix.sh \
18+
--disable-fat\
1819
--use-gmp-github-mirror\
1920
--patch-C23\
2021
#

0 commit comments

Comments
 (0)