From 2a651eab454151b590a9891b5c8e18c9ff8ea4aa Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 6 Aug 2024 13:05:21 -0700 Subject: [PATCH] build runner: --fuzz not yet supported on Windows --- lib/compiler/build_runner.zig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/compiler/build_runner.zig b/lib/compiler/build_runner.zig index 76be8610ef..690c937545 100644 --- a/lib/compiler/build_runner.zig +++ b/lib/compiler/build_runner.zig @@ -418,6 +418,14 @@ pub fn main() !void { else => return err, }; if (fuzz) { + switch (builtin.os.tag) { + // Current implementation depends on two things that need to be ported to Windows: + // * Memory-mapping to share data between the fuzzer and build runner. + // * COFF/PE support added to `std.debug.Info` (it needs a batching API for resolving + // many addresses to source locations). + .windows => fatal("--fuzz not yet implemented for {s}", .{@tagName(builtin.os.tag)}), + else => {}, + } const listen_address = std.net.Address.parseIp("127.0.0.1", listen_port) catch unreachable; try Fuzz.start( gpa,