From 75983c692fad81120a7c641a54c2eb90bc467def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 28 Aug 2024 21:42:34 +0200 Subject: [PATCH] test: Switch all `arm-linux-*` triples for module tests from v8a to v7a. Broadly speaking, versions 6, 7, and 8 are the ones that are in common use. Of these, v7 is what you'll typically see for 32-bit Arm today. So let's actually make sure that that's what we're testing. --- test/tests.zig | 54 ++++++++++++++++++++++++++++---------------------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/test/tests.zig b/test/tests.zig index cf5fd93df8..f07f67c2e1 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -291,43 +291,49 @@ const test_targets = blk: { }, .{ - .target = std.Target.Query.parse(.{ - .arch_os_abi = "arm-linux-eabi", - .cpu_features = "generic+v8a", - }) catch unreachable, + .target = .{ + .cpu_arch = .arm, + .os_tag = .linux, + .abi = .eabi, + }, }, .{ - .target = std.Target.Query.parse(.{ - .arch_os_abi = "arm-linux-eabihf", - .cpu_features = "generic+v8a", - }) catch unreachable, + .target = .{ + .cpu_arch = .arm, + .os_tag = .linux, + .abi = .eabihf, + }, }, .{ - .target = std.Target.Query.parse(.{ - .arch_os_abi = "arm-linux-musleabi", - .cpu_features = "generic+v8a", - }) catch unreachable, + .target = .{ + .cpu_arch = .arm, + .os_tag = .linux, + .abi = .musleabi, + }, .link_libc = true, }, .{ - .target = std.Target.Query.parse(.{ - .arch_os_abi = "arm-linux-musleabihf", - .cpu_features = "generic+v8a", - }) catch unreachable, + .target = .{ + .cpu_arch = .arm, + .os_tag = .linux, + .abi = .musleabihf, + }, .link_libc = true, }, .{ - .target = std.Target.Query.parse(.{ - .arch_os_abi = "arm-linux-gnueabi", - .cpu_features = "generic+v8a", - }) catch unreachable, + .target = .{ + .cpu_arch = .arm, + .os_tag = .linux, + .abi = .gnueabi, + }, .link_libc = true, }, .{ - .target = std.Target.Query.parse(.{ - .arch_os_abi = "arm-linux-gnueabihf", - .cpu_features = "generic+v8a", - }) catch unreachable, + .target = .{ + .cpu_arch = .arm, + .os_tag = .linux, + .abi = .gnueabihf, + }, .link_libc = true, },