Skip to content

zig build on platforms with !Watch.have_impl regressed #24682

@linusg

Description

@linusg

Zig Version

0.15.0-dev.1380+e98aeeb73

Steps to Reproduce and Observed Behavior

Zig fails to compile the build runner because it tries to unconditionally call update() on a possibly void type:

try w.update(gpa, run.step_stack.keys());

zig/lib/std/Build/Watch.zig

Lines 903 to 905 in 4932654

pub fn update(w: *Watch, gpa: Allocator, steps: []const *Step) !void {
return Os.update(w, gpa, steps);
}

else => void,

Expected Behavior

zig build without watch functionality should still work.

Metadata

Metadata

Assignees

Labels

bugObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.zig build systemstd.Build, the build runner, `zig build` subcommand, package management

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions