aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2025-08-13 13:01:20 +0100
committerMatthew Lugg <mlugg@mlugg.co.uk>2025-08-13 23:50:57 +0100
commite304a478c0654e8a6c506eedbd5556f99ac79d6c (patch)
tree0d4e414134e438b156b67d62ae5b87a9b6e2f287 /lib/std/Build
parent4f639ff8805b33fa6c75416eddfb205e3a04e09a (diff)
downloadzig-e304a478c0654e8a6c506eedbd5556f99ac79d6c.tar.gz
zig-e304a478c0654e8a6c506eedbd5556f99ac79d6c.zip
build runner: fix single-threaded build
Resolves: #24723
Diffstat (limited to 'lib/std/Build')
-rw-r--r--lib/std/Build/WebServer.zig8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/std/Build/WebServer.zig b/lib/std/Build/WebServer.zig
index 454e9196b9..780e249323 100644
--- a/lib/std/Build/WebServer.zig
+++ b/lib/std/Build/WebServer.zig
@@ -59,11 +59,9 @@ pub const Options = struct {
listen_address: std.net.Address,
};
pub fn init(opts: Options) WebServer {
- if (builtin.single_threaded) {
- // The upcoming `std.Io` interface should allow us to use `Io.async` and `Io.concurrent`
- // instead of threads, so that the web server can function in single-threaded builds.
- std.process.fatal("--webui not yet implemented for single-threaded builds", .{});
- }
+ // The upcoming `std.Io` interface should allow us to use `Io.async` and `Io.concurrent`
+ // instead of threads, so that the web server can function in single-threaded builds.
+ comptime assert(!builtin.single_threaded);
const all_steps = opts.all_steps;