diff --git a/lib/compiler/build_runner.zig b/lib/compiler/build_runner.zig index 7e1286958ae6..17cdcd6d5fd8 100644 --- a/lib/compiler/build_runner.zig +++ b/lib/compiler/build_runner.zig @@ -460,8 +460,10 @@ pub fn main() !void { .listen_address = listen_address, }) else null; - if (run.web_server) |*ws| { - ws.start() catch |err| fatal("failed to start web server: {s}", .{@errorName(err)}); + if (!builtin.single_threaded) { + if (run.web_server) |*ws| { + ws.start() catch |err| fatal("failed to start web server: {s}", .{@errorName(err)}); + } } rebuild: while (true) { @@ -480,8 +482,10 @@ pub fn main() !void { else => return err, }; - if (run.web_server) |*web_server| { - web_server.finishBuild(.{ .fuzz = fuzz }); + if (!builtin.single_threaded) { + if (run.web_server) |*web_server| { + web_server.finishBuild(.{ .fuzz = fuzz }); + } } if (!watch and run.web_server == null) {