zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ae09f9bbce52e7221b889dbb479aca9acec4085b (tree)
parent af7b6713d9b7ed1e3a2114dd24181931d962a0fc
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Sun, 21 Jul 2024 23:54:47 -0700

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

Diffstat:
Mlib/std/mem.zig | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

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