Skip to content

Commit e98aeeb

Browse files
committed
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!)
1 parent 239efa7 commit e98aeeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/Build/Step/Compile.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1851,7 +1851,7 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
18511851
const maybe_output_dir = step.evalZigProcess(
18521852
zig_args,
18531853
options.progress_node,
1854-
(b.graph.incremental == true) and options.watch,
1854+
(b.graph.incremental == true) and (options.watch or options.web_server != null),
18551855
options.web_server,
18561856
options.gpa,
18571857
) catch |err| switch (err) {

0 commit comments

Comments
 (0)