| ... | ... | @@ -636,6 +636,10 @@ test lessThan { |
| 636 | 636 | try testing.expect(lessThan(u8, "", "a")); |
| 637 | 637 | } |
| 638 | 638 | |
| 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. |
| 641 | const fuzz = @hasDecl(builtin, "fuzz") and builtin.fuzz; |
| 642 | |
| 639 | 643 | const eqlBytes_allowed = switch (builtin.zig_backend) { |
| 640 | 644 | // The SPIR-V backend does not support the optimized path yet. |
| 641 | 645 | .stage2_spirv64 => false, |
| ... | ... | @@ -643,7 +647,7 @@ const eqlBytes_allowed = switch (builtin.zig_backend) { |
| 643 | 647 | .stage2_riscv64 => false, |
| 644 | 648 | // The naive memory comparison implementation is more useful for fuzzers to |
| 645 | 649 | // find interesting inputs. |
| 646 | | else => !builtin.fuzz, |
| 650 | else => !fuzz, |
| 647 | 651 | }; |
| 648 | 652 | |
| 649 | 653 | /// Compares two slices and returns whether they are equal. |