From 1c6642552e6679a11779c4a7d3172f5ce30125ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 21 Aug 2024 14:21:57 +0200 Subject: [PATCH] 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. --- lib/std/zig/target.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/zig/target.zig b/lib/std/zig/target.zig index b248f21d6a..2a3652feb4 100644 --- a/lib/std/zig/target.zig +++ b/lib/std/zig/target.zig @@ -32,7 +32,7 @@ pub const available_libcs = [_]ArchOsAbi{ .{ .arch = .thumbeb, .os = .linux, .abi = .gnueabihf }, .{ .arch = .thumbeb, .os = .linux, .abi = .musleabi }, .{ .arch = .thumbeb, .os = .linux, .abi = .musleabihf }, - .{ .arch = .arm, .os = .windows, .abi = .gnu }, + .{ .arch = .thumb, .os = .windows, .abi = .gnu }, .{ .arch = .csky, .os = .linux, .abi = .gnueabi, .glibc_min = .{ .major = 2, .minor = 29, .patch = 0 } }, .{ .arch = .csky, .os = .linux, .abi = .gnueabihf, .glibc_min = .{ .major = 2, .minor = 29, .patch = 0 } }, .{ .arch = .x86, .os = .linux, .abi = .gnu },