feature. See also
. The project being documented here (as the example) is the Zig library itself.
tls.current_variant
const current_variant: Variant = switch (native_arch)
File
Code
const current_variant: Variant = switch (native_arch) {
.aarch64,
.aarch64_be,
.alpha,
.arc,
.arceb,
.arm,
.armeb,
.csky,
.hppa,
.microblaze,
.microblazeel,
.sh,
.sheb,
.thumb,
.thumbeb,
.xtensa,
.xtensaeb,
=> .I_original,
.loongarch32,
.loongarch64,
.m68k,
.mips,
.mipsel,
.mips64,
.mips64el,
.or1k,
.powerpc,
.powerpcle,
.powerpc64,
.powerpc64le,
.riscv32,
.riscv64,
=> .I_modified,
.hexagon,
.s390x,
.sparc,
.sparc64,
.x86,
.x86_64,
=> .II,
else => @compileError("undefined TLS variant for this architecture"),
}