| ... | @@ -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 | }); |
| 28 | | 33 | |
| 29 | // x86_64 tests | 34 | // x86_64 tests |
| 30 | // Exercise linker in -r mode | 35 | // 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 tests | 143 | // aarch64 tests |
| 139 | elf_step.dependOn(testLinkingC(b, .{ .target = aarch64_musl })); | 144 | elf_step.dependOn(testLinkingC(b, .{ .target = aarch64_musl })); |
| 140 | | 145 | |
| | 146 | // riscv64 tests |
| | 147 | elf_step.dependOn(testLinkingC(b, .{ .target = riscv64_musl })); |
| | 148 | |
| 141 | return elf_step; | 149 | return elf_step; |
| 142 | } | 150 | } |
| 143 | | 151 | |