authorgravatar for brad.olson@movedbylight.comBrad Olson <brad.olson@movedbylight.com> 2025-02-26 14:55:17-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-02-26 19:16:05-05:00
logc031b62b83cf15cb4374103f73c882afd94355e4
tree480e55b81d0f0563156eb01c9c07091bb627cdd5
parent8957b2707464a4dc7f0572bfc08fd104408bc8a3

compiler.build_runner: only build Fuzz on 64-bit platforms


1 files changed, 7 insertions(+), 0 deletions(-)

lib/compiler/build_runner.zig+7
...@@ -431,6 +431,13 @@ pub fn main() !void {...@@ -431,6 +431,13 @@ pub fn main() !void {
431 .windows => fatal("--fuzz not yet implemented for {s}", .{@tagName(builtin.os.tag)}),431 .windows => fatal("--fuzz not yet implemented for {s}", .{@tagName(builtin.os.tag)}),
432 else => {},432 else => {},
433 }433 }
434 if (@bitSizeOf(usize) != 64) {
435 // Current implementation depends on posix.mmap()'s second parameter, `length: usize`,
436 // being compatible with `std.fs.getEndPos() u64`'s return value. This is not the case
437 // on 32-bit platforms.
438 // Affects or affected by issues #5185, #22523, and #22464.
439 fatal("--fuzz not yet implemented on {d}-bit platforms", .{@bitSizeOf(usize)});
440 }
434 const listen_address = std.net.Address.parseIp("127.0.0.1", listen_port) catch unreachable;441 const listen_address = std.net.Address.parseIp("127.0.0.1", listen_port) catch unreachable;
435 try Fuzz.start(442 try Fuzz.start(
436 gpa,443 gpa,