test/link/elf: test static linking C riscv64-musl

This commit is contained in:
Jakub Konka 2024-02-21 23:08:29 +01:00
parent 720dd80007
commit ddb33baa11

View File

@ -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;
}