mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
test: Add thumbeb-linux-* to the module test matrix.
This commit is contained in:
parent
df27298aef
commit
fdc0ed92ce
1 changed files with 66 additions and 2 deletions
|
|
@ -440,7 +440,7 @@ const test_targets = blk: {
|
||||||
.target = std.Target.Query.parse(.{
|
.target = std.Target.Query.parse(.{
|
||||||
.arch_os_abi = "thumb-linux-musleabi",
|
.arch_os_abi = "thumb-linux-musleabi",
|
||||||
.cpu_features = "baseline+long_calls",
|
.cpu_features = "baseline+long_calls",
|
||||||
}) catch @panic("OOM"),
|
}) catch unreachable,
|
||||||
.link_libc = true,
|
.link_libc = true,
|
||||||
.pic = false, // Long calls don't work with PIC.
|
.pic = false, // Long calls don't work with PIC.
|
||||||
.skip_modules = &.{
|
.skip_modules = &.{
|
||||||
|
|
@ -454,7 +454,71 @@ const test_targets = blk: {
|
||||||
.target = std.Target.Query.parse(.{
|
.target = std.Target.Query.parse(.{
|
||||||
.arch_os_abi = "thumb-linux-musleabihf",
|
.arch_os_abi = "thumb-linux-musleabihf",
|
||||||
.cpu_features = "baseline+long_calls",
|
.cpu_features = "baseline+long_calls",
|
||||||
}) catch @panic("OOM"),
|
}) catch unreachable,
|
||||||
|
.link_libc = true,
|
||||||
|
.pic = false, // Long calls don't work with PIC.
|
||||||
|
.skip_modules = &.{
|
||||||
|
"behavior",
|
||||||
|
"c-import",
|
||||||
|
"compiler-rt",
|
||||||
|
"universal-libc",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
.{
|
||||||
|
.target = .{
|
||||||
|
.cpu_arch = .thumbeb,
|
||||||
|
.os_tag = .linux,
|
||||||
|
.abi = .eabi,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
.{
|
||||||
|
.target = .{
|
||||||
|
.cpu_arch = .thumbeb,
|
||||||
|
.os_tag = .linux,
|
||||||
|
.abi = .eabihf,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
.{
|
||||||
|
.target = .{
|
||||||
|
.cpu_arch = .thumbeb,
|
||||||
|
.os_tag = .linux,
|
||||||
|
.abi = .musleabi,
|
||||||
|
},
|
||||||
|
.link_libc = true,
|
||||||
|
.skip_modules = &.{"std"},
|
||||||
|
},
|
||||||
|
.{
|
||||||
|
.target = .{
|
||||||
|
.cpu_arch = .thumbeb,
|
||||||
|
.os_tag = .linux,
|
||||||
|
.abi = .musleabihf,
|
||||||
|
},
|
||||||
|
.link_libc = true,
|
||||||
|
.skip_modules = &.{"std"},
|
||||||
|
},
|
||||||
|
// Calls are normally lowered to branch instructions that only support +/- 16 MB range when
|
||||||
|
// targeting Thumb. This is not sufficient for the std test binary linked statically with
|
||||||
|
// musl, so use long calls to avoid out-of-range relocations.
|
||||||
|
.{
|
||||||
|
.target = std.Target.Query.parse(.{
|
||||||
|
.arch_os_abi = "thumbeb-linux-musleabi",
|
||||||
|
.cpu_features = "baseline+long_calls",
|
||||||
|
}) catch unreachable,
|
||||||
|
.link_libc = true,
|
||||||
|
.pic = false, // Long calls don't work with PIC.
|
||||||
|
.skip_modules = &.{
|
||||||
|
"behavior",
|
||||||
|
"c-import",
|
||||||
|
"compiler-rt",
|
||||||
|
"universal-libc",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
.{
|
||||||
|
.target = std.Target.Query.parse(.{
|
||||||
|
.arch_os_abi = "thumbeb-linux-musleabihf",
|
||||||
|
.cpu_features = "baseline+long_calls",
|
||||||
|
}) catch unreachable,
|
||||||
.link_libc = true,
|
.link_libc = true,
|
||||||
.pic = false, // Long calls don't work with PIC.
|
.pic = false, // Long calls don't work with PIC.
|
||||||
.skip_modules = &.{
|
.skip_modules = &.{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue