DoxigAlpha

versionRangeTag

Function parameters

Parameters

#

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 inline fn versionRangeTag(tag: Tag) @typeInfo(TaggedVersionRange).@"union".tag_type.? {
    return switch (tag) {
        .freestanding,
        .other,

        .haiku,
        .plan9,
        .serenity,

        .illumos,

        .ps3,
        .ps4,
        .ps5,

        .emscripten,

        .mesa3d,
        => .none,

        .contiki,
        .fuchsia,
        .hermit,

        .aix,
        .rtems,
        .zos,

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

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

        .solaris,

        .uefi,

        .wasi,

        .amdhsa,
        .amdpal,
        .cuda,
        .nvcl,
        .opencl,
        .opengl,
        .vulkan,
        => .semver,

        .hurd => .hurd,
        .linux => .linux,

        .windows => .windows,
    };
}