mirror of
https://github.com/python/cpython
synced 2024-09-05 00:05:39 +00:00
bpo-45798: Let libmpdec decide which archs to build on macOS as done previously. (GH-29949)
This commit is contained in:
parent
c5c365220e
commit
ddbab69b6d
16
configure
vendored
16
configure
vendored
|
@ -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
|
||||
|
|
11
configure.ac
11
configure.ac
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue