DoxigAlpha

Function parameters

Parameters

#
os:Os.Tag

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#
requiresLibC
Does this target require linking libc? This may be the case if the target has an unstable
cCharSignedness
Default signedness of `char` for the native C compiler for this target

Source

Implementation

#
pub fn kind(os: Os.Tag) Kind {
    return switch (os) {
        .fuchsia,

        .haiku,
        .serenity,

        .dragonfly,
        .freebsd,
        .netbsd,
        .openbsd,

        .driverkit,
        .ios,
        .macos,
        .tvos,
        .visionos,
        .watchos,

        .illumos,
        .solaris,
        => .arch_os,
        .hurd,
        .linux,
        => .arch_os_abi,
        .freestanding,
        .other,

        .contiki,
        .hermit,

        .aix,
        .plan9,
        .rtems,
        .zos,

        .uefi,
        .windows,

        .emscripten,
        .wasi,

        .amdhsa,
        .amdpal,
        .cuda,
        .mesa3d,
        .nvcl,
        .opencl,
        .opengl,
        .vulkan,

        .ps3,
        .ps4,
        .ps5,
        => .none,
    };
}