Skip to content

Commit 25a76f8

Browse files
committed
LLVM patch: Fix Triple::isTargetEHABICompatible() for NetBSD
This can hopefully be dropped with LLVM 21.
1 parent 2babc9e commit 25a76f8

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
@@ -21,6 +21,7 @@ For other versions, check the git tags of this repository.
2121
* LLVM: Support .lib extension for static zstd.
2222
* LLVM: Portable handling of .def linker flag
2323
* LLVM: Don't pass -static when building executables.
24+
* LLVM: Fix `Triple::isTargetEHABICompatible()` for NetBSD
2425
* Clang: Ignore the examples directory
2526
* Clang: Disable building of libclang-cpp.so.
2627
* 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
@@ -912,7 +912,8 @@ class Triple {
912912
getEnvironment() == Triple::GNUEABIHFT64 ||
913913
getEnvironment() == Triple::OpenHOS ||
914914
getEnvironment() == Triple::MuslEABIHF || isAndroid()) &&
915-
isOSBinFormatELF();
915+
isOSBinFormatELF() &&
916+
!isOSNetBSD();
916917
}
917918

918919
/// Tests whether the target is T32.

0 commit comments

Comments
 (0)