Fields

tag: Tag,
version_range: VersionRange,

Functions

inline fn getVersionRange(self: Os) TaggedVersionRange

Provides a tagged union. Target does not store the tag because it is redundan…

Provides a tagged union. Target does not store the tag because it is redundant with the OS tag; this function abstracts that part away.

inline fn isAtLeast(self: Os, comptime tag: Tag, version: anytype) ?bool

Checks if system is guaranteed to be at least version or older than version….

Checks if system is guaranteed to be at least version or older than version. Returns null if a runtime check is required.

inline fn requiresLibC(os: Os) bool

On Darwin, we always link libSystem which contains libc. Similarly on FreeBSD a…

On Darwin, we always link libSystem which contains libc. Similarly on FreeBSD and NetBSD we always link system libc since this is the stable syscall interface.