Skip to content

Commit 9593033

Browse files
alexrpoka4shi
authored andcommitted
LLVM patch: Fix Triple::isTargetEHABICompatible() for NetBSD
This can hopefully be dropped with LLVM 21.
1 parent 08cc5ab commit 9593033

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ For other versions, check the git tags of this repository.
3232
* LLVM: Support .lib extension for static zstd.
3333
* LLVM: Portable handling of .def linker flag
3434
* LLVM: Don't pass -static when building executables.
35+
* LLVM: Fix `Triple::isTargetEHABICompatible()` for NetBSD
3536
* Clang: Ignore the examples directory
3637
* Clang: Disable building of libclang-cpp.so.
3738
* LLD: Added additional include directory to Zig's libunwind.

llvm/include/llvm/TargetParser/Triple.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,8 @@ class Triple {
913913
getEnvironment() == Triple::GNUEABIHFT64 ||
914914
getEnvironment() == Triple::OpenHOS ||
915915
getEnvironment() == Triple::MuslEABIHF || isAndroid()) &&
916-
isOSBinFormatELF();
916+
isOSBinFormatELF() &&
917+
!isOSNetBSD();
917918
}
918919

919920
/// Tests whether the target is T32.

0 commit comments

Comments
 (0)