From: Lawrence D'Anna <64555057+lawrence-danna-apple@users.noreply.github.com> Date: Tue, 30 Jun 2020 09:15:46 +0000 (-0700) Subject: bpo-41100: fix _decimal for arm64 Mac OS (GH-21228) X-Git-Tag: v3.10.0a1~473 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=604d95e235d86465b8c17f02095edcaf18464d4c;p=thirdparty%2FPython%2Fcpython.git bpo-41100: fix _decimal for arm64 Mac OS (GH-21228) Patch by Lawrence Danna. --- diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-06-30-04-44-29.bpo-41100.PJwA6F.rst b/Misc/NEWS.d/next/Core and Builtins/2020-06-30-04-44-29.bpo-41100.PJwA6F.rst new file mode 100644 index 000000000000..d6176d69f0eb --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2020-06-30-04-44-29.bpo-41100.PJwA6F.rst @@ -0,0 +1 @@ +add arm64 to the allowable Mac OS arches in mpdecimal.h \ No newline at end of file diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h index 108b76efa859..35ce429f6012 100644 --- a/Modules/_decimal/libmpdec/mpdecimal.h +++ b/Modules/_decimal/libmpdec/mpdecimal.h @@ -127,6 +127,9 @@ const char *mpd_version(void); #elif defined(__x86_64__) #define CONFIG_64 #define ASM + #elif defined(__arm64__) + #define CONFIG_64 + #define ANSI #else #error "unknown architecture for universal build." #endif