1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

devel/llvm80: add powerpc64le support

llvm80 builds without it on powerpc64le, but __ELF__ is not defined, breaking e.g. creduce.
This commit is contained in:
Piotr Kubaj 2020-09-27 11:50:21 +00:00
parent 9a4bea7d53
commit a4d20d9eeb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550271

View File

@ -0,0 +1,11 @@
--- tools/clang/lib/Basic/Targets.cpp.orig 2020-09-27 10:34:55 UTC
+++ tools/clang/lib/Basic/Targets.cpp
@@ -357,6 +357,8 @@ TargetInfo *AllocateTarget(const llvm::Triple &Triple,
switch (os) {
case llvm::Triple::Linux:
return new LinuxTargetInfo<PPC64TargetInfo>(Triple, Opts);
+ case llvm::Triple::FreeBSD:
+ return new FreeBSDTargetInfo<PPC64TargetInfo>(Triple, Opts);
case llvm::Triple::NetBSD:
return new NetBSDTargetInfo<PPC64TargetInfo>(Triple, Opts);
default: