8000 bpo-41100: fix _decimal for arm64 Mac OS (GH-21228) · python/cpython@604d95e · GitHub
[go: up one dir, main page]

Skip to content

Commit 604d95e

Browse files
bpo-41100: fix _decimal for arm64 Mac OS (GH-21228)
Patch by Lawrence Danna.
1 parent ba67d73 commit 604d95e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add arm64 to the allowable Mac OS arches in mpdecimal.h

Modules/_decimal/libmpdec/mpdecimal.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ const char *mpd_version(void);
127127
#elif defined(__x86_64__)
128128
#define CONFIG_64
129129
#define ASM
130+
#elif defined(__arm64__)
131+
#define CONFIG_64
132+
#define ANSI
130133
#else
131134
#error "unknown architecture for universal build."
132135
#endif

0 commit comments

Comments
 (0)
0