From 0683e1564c7a4515eb0060a4c740eb6c0d922bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 4 Aug 2025 20:51:36 +0200 Subject: [PATCH] test: use long calls for hexagon-linux module tests --- test/tests.zig | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/test/tests.zig b/test/tests.zig index 5e08fa032f..834507bb90 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -385,32 +385,30 @@ const test_targets = blk: { .link_libc = true, }, + // Similar to Thumb, we need long calls on Hexagon due to relocation range issues. .{ - .target = .{ - .cpu_arch = .hexagon, - .os_tag = .linux, - .abi = .none, - }, + .target = std.Target.Query.parse(.{ + .arch_os_abi = "hexagon-linux-none", + .cpu_features = "baseline+long_calls", + }) catch unreachable, // https://github.com/llvm/llvm-project/pull/111217 .skip_modules = &.{"std"}, }, .{ - .target = .{ - .cpu_arch = .hexagon, - .os_tag = .linux, - .abi = .musl, - }, + .target = std.Target.Query.parse(.{ + .arch_os_abi = "hexagon-linux-musl", + .cpu_features = "baseline+long_calls", + }) catch unreachable, .link_libc = true, // https://github.com/llvm/llvm-project/pull/111217 .skip_modules = &.{"std"}, }, // Currently crashes in qemu-hexagon. // .{ - // .target = .{ - // .cpu_arch = .hexagon, - // .os_tag = .linux, - // .abi = .musl, - // }, + // .target = std.Target.Query.parse(.{ + // .arch_os_abi = "hexagon-linux-musl", + // .cpu_features = "baseline+long_calls", + // }) catch unreachable, // .linkage = .dynamic, // .link_libc = true, // // https://github.com/llvm/llvm-project/pull/111217