Skip to content

Commit

Permalink
build: update signature of Step.make functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Jul 17, 2024
1 parent 1353822 commit dfabc65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ const CreateSymlinksStep = struct {
return self;
}

fn make(step: *std.Build.Step, prog_node: std.Progress.Node) anyerror!void {
fn make(step: *std.Build.Step, options: std.Build.Step.MakeOptions) anyerror!void {
const prog_node = options.progress_node;
const self: *CreateSymlinksStep = @fieldParentPtr("step", step);
const install_path = self.install.artifact.getEmittedBin().getPath(self.builder);
const rel_source = fs.path.basename(install_path);
Expand Down
4 changes: 2 additions & 2 deletions test/test.zig
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ pub const SkipTestStep = struct {
return self;
}

fn make(step: *Step, prog_node: std.Progress.Node) anyerror!void {
fn make(step: *Step, options: Step.MakeOptions) anyerror!void {
_ = step;
_ = prog_node;
_ = options;
return error.MakeSkipped;
}
};
Expand Down

0 comments on commit dfabc65

Please sign in to comment.