summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-12-24 00:29:24 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-12-24 00:29:24 +0000
commita74c983b48539c1ac4552ae7a0d7dbc7b13c9a86 (patch)
tree865ee6d464f9c1cf368837938bed689261cd18d9
parentscience/py-scipy: Update 1.2.2 -> 1.5.4 (diff)
devel/llvm10: fix libllvm runtime on powerpc64 head
llvmpipe on powerpc64 head is broken without this. This patch seems to have been droppen after llvm90
Notes
Notes: svn path=/head/; revision=559037
-rw-r--r--devel/llvm10/Makefile2
-rw-r--r--devel/llvm10/files/clang/patch-lib_Target_PowerPC_PPCTargetMachine.cpp23
2 files changed, 24 insertions, 1 deletions
diff --git a/devel/llvm10/Makefile b/devel/llvm10/Makefile
index 57073e909df8..c28c7508c3d2 100644
--- a/devel/llvm10/Makefile
+++ b/devel/llvm10/Makefile
@@ -2,7 +2,7 @@
PORTNAME= llvm
DISTVERSION= 10.0.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= devel lang
MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \
https://${PRE_}releases.llvm.org/${LLVM_RELEASE}/${RCDIR}
diff --git a/devel/llvm10/files/clang/patch-lib_Target_PowerPC_PPCTargetMachine.cpp b/devel/llvm10/files/clang/patch-lib_Target_PowerPC_PPCTargetMachine.cpp
new file mode 100644
index 000000000000..b0a1482581c9
--- /dev/null
+++ b/devel/llvm10/files/clang/patch-lib_Target_PowerPC_PPCTargetMachine.cpp
@@ -0,0 +1,23 @@
+--- lib/Target/PowerPC/PPCTargetMachine.cpp.orig 2019-07-04 07:43:51 UTC
++++ lib/Target/PowerPC/PPCTargetMachine.cpp
+@@ -209,6 +209,20 @@ static PPCTargetMachine::PPCABI computeTargetABI(const
+ if (TT.isMacOSX())
+ return PPCTargetMachine::PPC_ABI_UNKNOWN;
+
++ if (TT.isOSFreeBSD()) {
++ switch (TT.getArch()) {
++ case Triple::ppc64le:
++ case Triple::ppc64:
++ if (TT.getOSMajorVersion() >= 13)
++ return PPCTargetMachine::PPC_ABI_ELFv2;
++ else
++ return PPCTargetMachine::PPC_ABI_ELFv1;
++ case Triple::ppc:
++ default:
++ return PPCTargetMachine::PPC_ABI_UNKNOWN;
++ }
++ }
++
+ switch (TT.getArch()) {
+ case Triple::ppc64le:
+ return PPCTargetMachine::PPC_ABI_ELFv2;