Skip to content

Commit d694ddd

Browse files
committed
std.os.linux.tls: Set tls_variant correctly for thumbeb.
1 parent d2d325a commit d694ddd

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

lib/std/os/linux/tls.zig

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,23 @@ const TLSVariant = enum {
4949
};
5050

5151
const tls_variant = switch (native_arch) {
52-
.arm, .armeb, .thumb, .aarch64, .aarch64_be, .riscv32, .riscv64, .mips, .mipsel, .mips64, .mips64el, .powerpc, .powerpcle, .powerpc64, .powerpc64le => TLSVariant.VariantI,
52+
.arm,
53+
.armeb,
54+
.thumb,
55+
.thumbeb,
56+
.aarch64,
57+
.aarch64_be,
58+
.riscv32,
59+
.riscv64,
60+
.mips,
61+
.mipsel,
62+
.mips64,
63+
.mips64el,
64+
.powerpc,
65+
.powerpcle,
66+
.powerpc64,
67+
.powerpc64le,
68+
=> TLSVariant.VariantI,
5369
.x86_64, .x86, .sparc64 => TLSVariant.VariantII,
5470
else => @compileError("undefined tls_variant for this architecture"),
5571
};

0 commit comments

Comments
 (0)