ports/devel/llvm14/files/extra-patch-clang_lib_Driver_ToolChains_Clang.cpp
Brooks Davis 6b85c3b08b devel/llvm14: bootstrap from llvm13
devel/llvm14 now contains an exact copy of devel/llvm13.  The next commit
wil update it to llvm14 and connect it to the build.
2022-02-10 18:13:01 +00:00

12 lines
522 B
C++

--- clang/lib/Driver/ToolChains/Clang.cpp.orig 2021-08-11 19:51:00.122735000 +0200
+++ clang/lib/Driver/ToolChains/Clang.cpp 2021-08-11 19:51:24.346107000 +0200
@@ -1921,8 +1921,7 @@
if (T.isOSBinFormatELF()) {
switch (getToolChain().getArch()) {
case llvm::Triple::ppc64: {
- if ((T.isOSFreeBSD() && T.getOSMajorVersion() >= 13) ||
- T.isOSOpenBSD() || T.isMusl())
+ if (T.isOSFreeBSD() || T.isOSOpenBSD() || T.isMusl())
ABIName = "elfv2";
else
ABIName = "elfv1";