summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2020-11-15 21:22:49 +0000
committerTor Lillqvist <tml@collabora.com>2020-11-15 23:53:17 +0100
commit631974dd958fe4ca1d1f2164266e1e2c81b325ce (patch)
tree2a7194cce091f29926b67cbe7d3b1dc35f5c9ffe /external
parent89a571ee1d08dc1e1c77ff647be36263325f23af (diff)
Make one more thing in Python compile for macOS on arm64
Change-Id: I6716048f0b58eb502b9d1ade8a13b8e33e4aaf2b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105905 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'external')
-rw-r--r--external/python3/macos-11.patch.012
1 files changed, 12 insertions, 0 deletions
diff --git a/external/python3/macos-11.patch.0 b/external/python3/macos-11.patch.0
index d6bc4e539d12..23fc5f9760c5 100644
--- a/external/python3/macos-11.patch.0
+++ b/external/python3/macos-11.patch.0
@@ -36,3 +36,15 @@
system_include_dirs = ['/usr/include']
# lib_dirs and inc_dirs are used to search for files;
# if a file is found in one of those directories, it can
+--- Modules/_decimal/libmpdec/mpdecimal.h
++++ Modules/_decimal/libmpdec/mpdecimal.h
+@@ -135,6 +135,9 @@
+ #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