mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
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!)
This commit is contained in:
parent
239efa7e67
commit
e98aeeb73f
@ -1851,7 +1851,7 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
|
|||||||
const maybe_output_dir = step.evalZigProcess(
|
const maybe_output_dir = step.evalZigProcess(
|
||||||
zig_args,
|
zig_args,
|
||||||
options.progress_node,
|
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.web_server,
|
||||||
options.gpa,
|
options.gpa,
|
||||||
) catch |err| switch (err) {
|
) catch |err| switch (err) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user