Add ability to compile on OpenBSD (#2310)

* fix curl in cmake, make c3c compile on OpenBSD, fix typo in OS_TYPE_FREEBSD
This commit is contained in:
LowByteFox
2025-07-19 21:09:39 +02:00
committed by GitHub
parent b88722b4a6
commit 1218afd51f
9 changed files with 71 additions and 21 deletions

View File

@@ -107,9 +107,13 @@ static bool llvm_link(ObjFormat format, const char **args, int arg_count, const
case ELF:
success = lld::elf::link(CALL_ARGS);
break;
#ifndef __OpenBSD__
case MACHO:
success = lld::macho::link(CALL_ARGS);
break;
#else
#warning "the maintainers of LLVM on this platform has deliberately excluded targets, which makes it impossible to offer the standard cross compilation available in the normal compiler"
#endif
case WASM:
success = lld::wasm::link(CALL_ARGS);
break;