authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-21 23:54:47-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-22 14:26:17-07:00
logae09f9bbce52e7221b889dbb479aca9acec4085b
treecdb5f515d31c7dd8edf348531c43402745dd73dd
parentaf7b6713d9b7ed1e3a2114dd24181931d962a0fc

std.mem: delete workaround now that zig1.wasm is updated


1 files changed, 1 insertions(+), 5 deletions(-)

lib/std/mem.zig+1-5
......@@ -636,10 +636,6 @@ test lessThan {
636636 try testing.expect(lessThan(u8, "", "a"));
637637}
638638
639/// Normally, we could simply use `builtin.fuzz` but this requires a zig1.wasm
640/// update. After the next zig1.wasm update, the `@hasDecl` can be removed.
641const fuzz = @hasDecl(builtin, "fuzz") and builtin.fuzz;
642
643639const eqlBytes_allowed = switch (builtin.zig_backend) {
644640 // The SPIR-V backend does not support the optimized path yet.
645641 .stage2_spirv64 => false,
......@@ -647,7 +643,7 @@ const eqlBytes_allowed = switch (builtin.zig_backend) {
647643 .stage2_riscv64 => false,
648644 // The naive memory comparison implementation is more useful for fuzzers to
649645 // find interesting inputs.
650 else => !fuzz,
646 else => !builtin.fuzz,
651647};
652648
653649/// Compares two slices and returns whether they are equal.