ports/devel/llvm15/files/extra-patch-clang_lib_Driver_ToolChains_Clang.cpp
Brooks Davis f3d912a7b9 devel/llvm15: boostrap from devel/llvm14
Make an as-is copy of llvm14 as devel/llvm15. It will be updated to
LLVM 15 and connected to the build in the next commit.  This makes it
easier to see what has changed.
2022-08-11 00:01:09 +01: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";