Commit 2a651eab45

Andrew Kelley <andrew@ziglang.org>
2024-08-06 22:05:21
build runner: --fuzz not yet supported on Windows
1 parent 904fcda
Changed files (1)
lib
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,