aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-08-07 01:08:44 -0700
committerGitHub <noreply@github.com>2024-08-07 01:08:44 -0700
commitb071b10ce83609199577ff077fb117ed62c98fe7 (patch)
treee7ab9b6278e96a518e9a668783715d7d23b204b5 /lib/std/start.zig
parent8268d7be52fdcff9dde3020f65aeb48b76f4397e (diff)
parent7d88bd0b9c4ca12235769a04c45842dab3b54827 (diff)
downloadzig-b071b10ce83609199577ff077fb117ed62c98fe7.tar.gz
zig-b071b10ce83609199577ff077fb117ed62c98fe7.zip
Merge pull request #20894 from alexrp/target-cleanup-4
`std.Target`: Minor rework to some `isArch()` functions, fix some related issues throughout `std`
Diffstat (limited to 'lib/std/start.zig')
-rw-r--r--lib/std/start.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig
index fd8661660b..c975c888af 100644
--- a/lib/std/start.zig
+++ b/lib/std/start.zig
@@ -495,7 +495,7 @@ fn posixCallMainAndExit(argc_argv_ptr: [*]usize) callconv(.C) noreturn {
// ARMv6 targets (and earlier) have no support for TLS in hardware.
// FIXME: Elide the check for targets >= ARMv7 when the target feature API
// becomes less verbose (and more usable).
- if (comptime native_arch.isARM()) {
+ if (comptime native_arch.isArmOrThumb()) {
if (at_hwcap & std.os.linux.HWCAP.TLS == 0) {
// FIXME: Make __aeabi_read_tp call the kernel helper kuser_get_tls
// For the time being use a simple trap instead of a @panic call to