authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-02-21 23:08:29+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-02-21 23:08:29+01:00
logddb33baa11525a4896be850b4e88d9db337b9c2c
tree3dc77ced5bc353c8d8a62e53d275427e9fb80764
parent720dd80007bf2bee0bb69f2c7ecd37c6af9adb17

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


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

test/link/elf.zig+8
......@@ -25,6 +25,11 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {
2525 .os_tag = .linux,
2626 .abi = .musl,
2727 });
28 const riscv64_musl = b.resolveTargetQuery(.{
29 .cpu_arch = .riscv64,
30 .os_tag = .linux,
31 .abi = .musl,
32 });
2833
2934 // x86_64 tests
3035 // Exercise linker in -r mode
......@@ -138,6 +143,9 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {
138143 // aarch64 tests
139144 elf_step.dependOn(testLinkingC(b, .{ .target = aarch64_musl }));
140145
146 // riscv64 tests
147 elf_step.dependOn(testLinkingC(b, .{ .target = riscv64_musl }));
148
141149 return elf_step;
142150}
143151