]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41100: fix _decimal for arm64 Mac OS (GH-21228)
authorLawrence D'Anna <64555057+lawrence-danna-apple@users.noreply.github.com>
Tue, 30 Jun 2020 09:15:46 +0000 (02:15 -0700)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2020 09:15:46 +0000 (11:15 +0200)
Patch by Lawrence Danna.

Misc/NEWS.d/next/Core and Builtins/2020-06-30-04-44-29.bpo-41100.PJwA6F.rst [new file with mode: 0644]
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 (file)
index 0000000..d6176d6
--- /dev/null
@@ -0,0 +1 @@
+add arm64 to the allowable Mac OS arches in mpdecimal.h
\ No newline at end of file
index 108b76efa8594178400a425ef3cd6f2abfcc100f..35ce429f60124a9237706aa4a11cd940f9a146cc 100644 (file)
@@ -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