-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management
Milestone
Description
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:
zig/lib/compiler/build_runner.zig
Line 505 in 4932654
| try w.update(gpa, run.step_stack.keys()); |
Lines 903 to 905 in 4932654
| pub fn update(w: *Watch, gpa: Allocator, steps: []const *Step) !void { | |
| return Os.update(w, gpa, steps); | |
| } |
Line 848 in 4932654
| else => void, |
Expected Behavior
zig build without watch functionality should still work.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management