authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-21 14:21:57+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-28 03:08:10+02:00
log1c6642552e6679a11779c4a7d3172f5ce30125ce
tree6d60ad6f12c47aa197f573f5043a12568dc68690
parent1a178d499537b922ff05c5d0186ed5a00dbb1a9b
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.zig.target: Change arm-windows-gnu triple to thumb-linux-gnu.

Windows on 32-bit Arm only operates in Thumb-2 mode: https://devblogs.microsoft.com/oldnewthing/20210601-00/?p=105267 Trying to compile for arm-windows-gnu fails in all sorts of ways as neither LLVM nor MinGW-w64 expect it.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/zig/target.zig+1-1
......@@ -32,7 +32,7 @@ pub const available_libcs = [_]ArchOsAbi{
3232 .{ .arch = .thumbeb, .os = .linux, .abi = .gnueabihf },
3333 .{ .arch = .thumbeb, .os = .linux, .abi = .musleabi },
3434 .{ .arch = .thumbeb, .os = .linux, .abi = .musleabihf },
35 .{ .arch = .arm, .os = .windows, .abi = .gnu },
35 .{ .arch = .thumb, .os = .windows, .abi = .gnu },
3636 .{ .arch = .csky, .os = .linux, .abi = .gnueabi, .glibc_min = .{ .major = 2, .minor = 29, .patch = 0 } },
3737 .{ .arch = .csky, .os = .linux, .abi = .gnueabihf, .glibc_min = .{ .major = 2, .minor = 29, .patch = 0 } },
3838 .{ .arch = .x86, .os = .linux, .abi = .gnu },