diff options
| author | David Rubin <daviru007@icloud.com> | 2024-04-13 23:11:32 -0700 |
|---|---|---|
| committer | David Rubin <daviru007@icloud.com> | 2024-05-11 02:17:24 -0700 |
| commit | d9e0cafe64dd7dc56fc2d46bc29c18630a108356 (patch) | |
| tree | ff0850456daae960d0530068d4d8e76ef94b4e63 /lib/std | |
| parent | e622485df8d162fd2696b6ab1149262aa6b74407 (diff) | |
| download | zig-d9e0cafe64dd7dc56fc2d46bc29c18630a108356.tar.gz zig-d9e0cafe64dd7dc56fc2d46bc29c18630a108356.zip | |
riscv: add stage2_riscv to test matrix and bypass failing tests
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/mem.zig | 2 | ||||
| -rw-r--r-- | lib/std/testing.zig | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/std/mem.zig b/lib/std/mem.zig index fe54a0ce74..aff9532ecb 100644 --- a/lib/std/mem.zig +++ b/lib/std/mem.zig @@ -638,6 +638,8 @@ test lessThan { const backend_can_use_eql_bytes = switch (builtin.zig_backend) { // The SPIR-V backend does not support the optimized path yet. .stage2_spirv64 => false, + // The RISC-V does not support vectors. + .stage2_riscv64 => false, else => true, }; diff --git a/lib/std/testing.zig b/lib/std/testing.zig index 2d97580a22..662351f153 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -22,7 +22,7 @@ pub var base_allocator_instance = std.heap.FixedBufferAllocator.init(""); pub var log_level = std.log.Level.warn; // Disable printing in tests for simple backends. -pub const backend_can_print = builtin.zig_backend != .stage2_spirv64; +pub const backend_can_print = builtin.zig_backend != .stage2_spirv64 and builtin.zig_backend != .stage2_riscv64; fn print(comptime fmt: []const u8, args: anytype) void { if (@inComptime()) { |
