]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45798: Let libmpdec decide which archs to build on macOS as done previously....
authorNed Deily <nad@python.org>
Tue, 7 Dec 2021 02:35:50 +0000 (21:35 -0500)
committerGitHub <noreply@github.com>
Tue, 7 Dec 2021 02:35:50 +0000 (21:35 -0500)
configure
configure.ac

index 2237e6ed8ce2ab024abe7a61fbfdcb4c9c20996f..608055d91fac36e1941b6a266f3f045e186989eb 100755 (executable)
--- a/configure
+++ b/configure
@@ -11815,21 +11815,9 @@ esac
 
 libmpdec_machine=unknown
 if test "$libmpdec_system" = Darwin; then
-    case $MACOSX_DEFAULT_ARCH in #(
-  i386) :
-    libmpdec_machine=ansi32 ;; #(
-  ppc) :
-    libmpdec_machine=ansi32 ;; #(
-  x86_64) :
-    libmpdec_machine=x64 ;; #(
-  ppc64) :
-    libmpdec_machine=ansi64 ;; #(
-  arm64) :
-    libmpdec_machine=ansi64 ;; #(
-  *) :
+    # universal here means: build libmpdec with the same arch options
+    # the python interpreter was built with
     libmpdec_machine=universal
-     ;;
-esac
 elif test $ac_cv_sizeof_size_t -eq 8; then
     if test "$ac_cv_gcc_asm_for_x64" = yes; then
         libmpdec_machine=x64
index f1aac2db71f5d8180cf7d74c6498ec426cc03958..7cc6c0c2f592a0e570701b7286bd6bf1794c12f8 100644 (file)
@@ -3295,14 +3295,9 @@ AS_CASE([$ac_sys_system],
 
 libmpdec_machine=unknown
 if test "$libmpdec_system" = Darwin; then
-    AS_CASE([$MACOSX_DEFAULT_ARCH],
-      [i386],   [libmpdec_machine=ansi32],
-      [ppc],    [libmpdec_machine=ansi32],
-      [x86_64], [libmpdec_machine=x64],
-      [ppc64],  [libmpdec_machine=ansi64],
-      [arm64],  [libmpdec_machine=ansi64],
-      [libmpdec_machine=universal]
-    )
+    # universal here means: build libmpdec with the same arch options
+    # the python interpreter was built with
+    libmpdec_machine=universal
 elif test $ac_cv_sizeof_size_t -eq 8; then
     if test "$ac_cv_gcc_asm_for_x64" = yes; then
         libmpdec_machine=x64