summaryrefslogtreecommitdiff
path: root/user/llvm14/ppc-test.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-11-28 23:40:21 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2022-11-28 23:44:16 -0600
commit2ca2069f91c77a186e098c0ae391b379cab594cc (patch)
treeccb7df3b200b4cfea490780974f6a736878ea4a0 /user/llvm14/ppc-test.patch
parente78459be10169c4bd2499648a23e2935873a3e13 (diff)
downloadpackages-2ca2069f91c77a186e098c0ae391b379cab594cc.tar.gz
packages-2ca2069f91c77a186e098c0ae391b379cab594cc.tar.bz2
packages-2ca2069f91c77a186e098c0ae391b379cab594cc.tar.xz
packages-2ca2069f91c77a186e098c0ae391b379cab594cc.zip
user/llvm14: Fix tests on 32-bit machines
* DWARF info patch fixes issue seen on ARMv7 and PPC. * Dyld patch fixes OrcJIT on PPC (also needed for mesa). * MachO fix is being sent upstream and affects all 32-bit CPUs. * PPC test fix is already upstream, backported to 14 branch. Fixes: #846
Diffstat (limited to 'user/llvm14/ppc-test.patch')
-rw-r--r--user/llvm14/ppc-test.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/user/llvm14/ppc-test.patch b/user/llvm14/ppc-test.patch
new file mode 100644
index 000000000..46ed8fbf0
--- /dev/null
+++ b/user/llvm14/ppc-test.patch
@@ -0,0 +1,13 @@
+The ifdef tree uses __powerpc__ so 32-bit PPC is supported as well.
+
+--- llvm-14.0.6.src/unittests/Support/Host.cpp.old 2022-06-22 16:46:24.000000000 +0000
++++ llvm-14.0.6.src/unittests/Support/Host.cpp 2022-11-28 02:15:41.512865406 +0000
+@@ -40,7 +40,7 @@
+ // some systems.
+ return (Host.isOSWindows() && llvm_is_multithreaded()) ||
+ Host.isOSDarwin() || (Host.isX86() && Host.isOSLinux()) ||
+- (Host.isPPC64() && Host.isOSLinux()) ||
++ (Host.isPPC() && Host.isOSLinux()) ||
+ (Host.isSystemZ() && (Host.isOSLinux() || Host.isOSzOS()));
+ }
+