mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 16:24:51 +00:00
start: Fix an isARM() check to use isArmOrThumb() instead.
This commit is contained in:
parent
5cd92a6b51
commit
a9c7818512
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user