Skip to content

Commit

Permalink
Update writeFile for latest Zig
Browse files Browse the repository at this point in the history
  • Loading branch information
squeek502 authored and Vexu committed May 8, 2024
1 parent 3d5c852 commit e8f011e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/GenerateDef.zig
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
};

const output = try self.generate(contents);
b.cache_root.handle.writeFile(sub_path, output) catch |err| {
b.cache_root.handle.writeFile(.{ .sub_path = sub_path, .data = output }) catch |err| {
return step.fail("unable to write file '{}{s}': {s}", .{
b.cache_root, sub_path, @errorName(err),
});
Expand Down

0 comments on commit e8f011e

Please sign in to comment.