authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-05 02:25:59+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-03 09:29:33+01:00
log621487d5abcf9006b3e38f96c49a533c1835e7a3
tree6597ab7dae4a3820cc5bc1ef0a664fdeececbd2c
parentd89cf3e7d86e21cd418795d1c0f0057f6d6eb60b
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

test: Add thumb-linux-(musl)eabi(hf) target triples for module tests.


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

test/tests.zig+64
......@@ -338,6 +338,70 @@ const test_targets = blk: {
338338 .link_libc = true,
339339 },
340340
341 .{
342 .target = .{
343 .cpu_arch = .thumb,
344 .os_tag = .linux,
345 .abi = .eabi,
346 },
347 },
348 .{
349 .target = .{
350 .cpu_arch = .thumb,
351 .os_tag = .linux,
352 .abi = .eabihf,
353 },
354 },
355 .{
356 .target = .{
357 .cpu_arch = .thumb,
358 .os_tag = .linux,
359 .abi = .musleabi,
360 },
361 .link_libc = true,
362 .skip_modules = &.{"std"},
363 },
364 .{
365 .target = .{
366 .cpu_arch = .thumb,
367 .os_tag = .linux,
368 .abi = .musleabihf,
369 },
370 .link_libc = true,
371 .skip_modules = &.{"std"},
372 },
373 // Calls are normally lowered to branch instructions that only support +/- 16 MB range when
374 // targeting Thumb. This is not sufficient for the std test binary linked statically with
375 // musl, so use long calls to avoid out-of-range relocations.
376 .{
377 .target = std.Target.Query.parse(.{
378 .arch_os_abi = "thumb-linux-musleabi",
379 .cpu_features = "baseline+long_calls",
380 }) catch @panic("OOM"),
381 .link_libc = true,
382 .pic = false, // Long calls don't work with PIC.
383 .skip_modules = &.{
384 "behavior",
385 "c-import",
386 "compiler-rt",
387 "universal-libc",
388 },
389 },
390 .{
391 .target = std.Target.Query.parse(.{
392 .arch_os_abi = "thumb-linux-musleabihf",
393 .cpu_features = "baseline+long_calls",
394 }) catch @panic("OOM"),
395 .link_libc = true,
396 .pic = false, // Long calls don't work with PIC.
397 .skip_modules = &.{
398 "behavior",
399 "c-import",
400 "compiler-rt",
401 "universal-libc",
402 },
403 },
404
341405 .{
342406 .target = .{
343407 .cpu_arch = .mips,