Files
ports/devel/llvm21/files/patch-clang_lib_Driver_ToolChain.cpp
T
Piotr Kubaj 2b4a774a8f devel/llvm[14-22]: backport powerpc64le patch from CURRENT
Since 16.0, powerpc64le switches to IEEE long double binary128.
This set of patches backports the change from CURRENT.
LLVM 12 and 13 are omitted, because binary128 handling in those
versions is not finished.
2026-06-21 22:05:19 +02:00

14 lines
385 B
C++

--- clang/lib/Driver/ToolChain.cpp.orig
+++ clang/lib/Driver/ToolChain.cpp
@@ -193,6 +193,10 @@
}
bool ToolChain::defaultToIEEELongDouble() const {
+ if (getTriple().isOSFreeBSD() &&
+ getTriple().getArch() == llvm::Triple::ppc64le &&
+ getTriple().getOSMajorVersion() >= 16)
+ return true;
return PPC_LINUX_DEFAULT_IEEELONGDOUBLE && getTriple().isOSLinux();
}