aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2025-08-02 02:01:31 +0100
committerMatthew Lugg <mlugg@mlugg.co.uk>2025-08-02 08:56:19 +0100
commite98aeeb73fba942c8e061bb8158ed073a7b19e1d (patch)
tree11a653d1b4763d5ef09098d173cb7965d3d39974 /lib/std
parent239efa7e670498a5745ee7db96948c875422c815 (diff)
downloadzig-e98aeeb73fba942c8e061bb8158ed073a7b19e1d.tar.gz
zig-e98aeeb73fba942c8e061bb8158ed073a7b19e1d.zip
std.Build: keep compiler alive under `-fincremental --webui`
Previously, this only applied when using `-fincremental --watch`, but `--webui` makes the build runner stay alive just like `--watch` does, so the same logic applies here. Without this, attempting to perform incremental updates with `--webui` performs full rebuilds. (I did test that before merging the PR, but at that time I was passing `--watch` too -- which has since been disallowed -- so I missed that it doesn't work as expected without that option!)
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/Build/Step/Compile.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig
index 5e14796792..59ccb87dad 100644
--- a/lib/std/Build/Step/Compile.zig
+++ b/lib/std/Build/Step/Compile.zig
@@ -1851,7 +1851,7 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
const maybe_output_dir = step.evalZigProcess(
zig_args,
options.progress_node,
- (b.graph.incremental == true) and options.watch,
+ (b.graph.incremental == true) and (options.watch or options.web_server != null),
options.web_server,
options.gpa,
) catch |err| switch (err) {