diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-01-22 03:14:25 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-01-22 03:14:25 +0000 |
commit | 3199a50ba83d4b1067f98d3fdf558a339b8958ef (patch) | |
tree | 42f45fa7d8c7b274eb193efb2148cdd684e1c012 /gnu/llvm | |
parent | e3e365687c57ef6c03bbb6bc8fb08e0b89b94e51 (diff) |
Disable COFF and Mach-O for OpenBSD to reduce build dependencies.
Only having ELF is perfectly fine for us.
ok kettenis@
Diffstat (limited to 'gnu/llvm')
-rw-r--r-- | gnu/llvm/tools/lld/tools/lld/lld.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/llvm/tools/lld/tools/lld/lld.cpp b/gnu/llvm/tools/lld/tools/lld/lld.cpp index 8805e02e8c4..0623b17c8b8 100644 --- a/gnu/llvm/tools/lld/tools/lld/lld.cpp +++ b/gnu/llvm/tools/lld/tools/lld/lld.cpp @@ -104,10 +104,12 @@ int main(int Argc, const char **Argv) { switch (parseFlavor(Args)) { case Gnu: return !elf::link(Args); +#ifndef __OpenBSD__ case WinLink: return !coff::link(Args); case Darwin: return !mach_o::link(Args); +#endif default: die("lld is a generic driver.\n" "Invoke ld.lld (Unix), ld (Mac) or lld-link (Windows) instead."); |