mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 08:33:06 +00:00
test/link/elf: test static linking C riscv64-musl
This commit is contained in:
parent
720dd80007
commit
ddb33baa11
@ -25,6 +25,11 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {
|
||||
.os_tag = .linux,
|
||||
.abi = .musl,
|
||||
});
|
||||
const riscv64_musl = b.resolveTargetQuery(.{
|
||||
.cpu_arch = .riscv64,
|
||||
.os_tag = .linux,
|
||||
.abi = .musl,
|
||||
});
|
||||
|
||||
// x86_64 tests
|
||||
// Exercise linker in -r mode
|
||||
@ -138,6 +143,9 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {
|
||||
// aarch64 tests
|
||||
elf_step.dependOn(testLinkingC(b, .{ .target = aarch64_musl }));
|
||||
|
||||
// riscv64 tests
|
||||
elf_step.dependOn(testLinkingC(b, .{ .target = riscv64_musl }));
|
||||
|
||||
return elf_step;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user