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 {...@@ -25,6 +25,11 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {
25 .os_tag = .linux,25 .os_tag = .linux,
26 .abi = .musl,26 .abi = .musl,
27 });27 });
28 const riscv64_musl = b.resolveTargetQuery(.{
29 .cpu_arch = .riscv64,
30 .os_tag = .linux,
31 .abi = .musl,
32 });
2833
29 // x86_64 tests34 // x86_64 tests
30 // Exercise linker in -r mode35 // Exercise linker in -r mode
...@@ -138,6 +143,9 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {...@@ -138,6 +143,9 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {
138 // aarch64 tests143 // aarch64 tests
139 elf_step.dependOn(testLinkingC(b, .{ .target = aarch64_musl }));144 elf_step.dependOn(testLinkingC(b, .{ .target = aarch64_musl }));
140145
146 // riscv64 tests
147 elf_step.dependOn(testLinkingC(b, .{ .target = riscv64_musl }));
148
141 return elf_step;149 return elf_step;
142}150}
143151