[Python-checkins] bpo-41100: fix _decimal for arm64 Mac OS (GH-21228)

Lawrence D'Anna webhook-mailer at python.org
Tue Jun 30 05:15:57 EDT 2020


https://github.com/python/cpython/commit/604d95e235d86465b8c17f02095edcaf18464d4c
commit: 604d95e235d86465b8c17f02095edcaf18464d4c
branch: master
author: Lawrence D'Anna <64555057+lawrence-danna-apple at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-06-30T11:15:46+02:00
summary:

bpo-41100: fix _decimal for arm64 Mac OS (GH-21228)

Patch by Lawrence Danna.

files:
A Misc/NEWS.d/next/Core and Builtins/2020-06-30-04-44-29.bpo-41100.PJwA6F.rst
M Modules/_decimal/libmpdec/mpdecimal.h

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 0000000000000..d6176d69f0eb0
--- /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 108b76efa8594..35ce429f60124 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



More information about the Python-checkins mailing list