aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2024-02-21 23:08:29 +0100
committerJakub Konka <kubkon@jakubkonka.com>2024-02-21 23:08:29 +0100
commitddb33baa11525a4896be850b4e88d9db337b9c2c (patch)
tree3dc77ced5bc353c8d8a62e53d275427e9fb80764 /test
parent720dd80007bf2bee0bb69f2c7ecd37c6af9adb17 (diff)
downloadzig-ddb33baa11525a4896be850b4e88d9db337b9c2c.tar.gz
zig-ddb33baa11525a4896be850b4e88d9db337b9c2c.zip
test/link/elf: test static linking C riscv64-musl
Diffstat (limited to 'test')
-rw-r--r--test/link/elf.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/link/elf.zig b/test/link/elf.zig
index 2bd37fdb09..97b67f6cdf 100644
--- a/test/link/elf.zig
+++ b/test/link/elf.zig
@@ -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;
}