Add initial FreeBSD support (#1430)

Add initial FreeBSD support
This commit is contained in:
wilsonk
2024-09-11 14:38:53 -06:00
committed by GitHub
parent 2b0d2892af
commit 1b54a99f6a
11 changed files with 198 additions and 17 deletions

View File

@@ -146,6 +146,7 @@ const bool POSIX = LIBC && os_is_posix();
const bool OPENBSD = LIBC && OS_TYPE == OPENBSD;
const bool FREEBSD = LIBC && OS_TYPE == FREEBSD;
const bool NETBSD = LIBC && OS_TYPE == NETBSD;
const bool BSD_FAMILY = env::FREEBSD || env::OPENBSD || env::NETBSD;
const bool WASI = LIBC && OS_TYPE == WASI;
const bool WASM_NOLIBC @builtin = !LIBC && ARCH_TYPE == ArchType.WASM32 || ARCH_TYPE == ArchType.WASM64;
const bool ADDRESS_SANITIZER = $$ADDRESS_SANITIZER;