From 125c4a265aa7cfe82b3fc0c1ac7de75a07315411 Mon Sep 17 00:00:00 2001 From: kcbanner Date: Sat, 9 Aug 2025 15:57:15 -0400 Subject: [PATCH 1/2] Fix `respondWebSocket`, enable --webui on Windows This commit re-enables the --webui functionality on windows, with the caveat that rebuild functionality is still disabled (due to deadlocks caused by reading to / writing from the same non-overlapped socket on multiple threads). I updated the UI to be aware of this, and hide the `Rebuild` button. http.Server: Remove incorrect advance() call. This was causing browsers to disconnect the websocket, as we were sending undefined bytes. build.WebServer: Re-enable on windows, but disable functionality that requires receiving messages from the client build-web: Show total times in tables --- lib/build-web/index.html | 2 ++ lib/build-web/main.js | 16 +++++++++++++--- lib/build-web/main.zig | 3 ++- lib/build-web/time_report.zig | 4 ++++ lib/std/Build/WebServer.zig | 19 ++++++++----------- lib/std/Build/abi.zig | 4 +++- lib/std/http/Server.zig | 1 - 7 files changed, 32 insertions(+), 17 deletions(-) diff --git a/lib/build-web/index.html b/lib/build-web/index.html index 117ae14c20..bcdc2c7141 100644 --- a/lib/build-web/index.html +++ b/lib/build-web/index.html @@ -105,6 +105,7 @@ Semantic Analysis Code Generation Linking + Total