summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGravatar dbandstra2020-03-01 21:32:15 -0800
committerGravatar dbandstra2020-03-01 21:32:15 -0800
commitffc5e241a6e41895d930d1a2831ad517cccaa0b9 (patch)
treeee382b1dfc247294a140df3ebb5234445b496399 /build.zig
parentMerge pull request #14 from dbandstra/update-for-typeof-rename (diff)
downloadzig-clap-ffc5e241a6e41895d930d1a2831ad517cccaa0b9.tar.gz
zig-clap-ffc5e241a6e41895d930d1a2831ad517cccaa0b9.tar.xz
zig-clap-ffc5e241a6e41895d930d1a2831ad517cccaa0b9.zip
update for latest zig
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 87cb366..f67f049 100644
--- a/build.zig
+++ b/build.zig
@@ -58,7 +58,7 @@ fn readMeStep(b: *Builder) *std.build.Step {
58 s.* = std.build.Step.init("ReadMeStep", b.allocator, struct { 58 s.* = std.build.Step.init("ReadMeStep", b.allocator, struct {
59 fn make(step: *std.build.Step) anyerror!void { 59 fn make(step: *std.build.Step) anyerror!void {
60 @setEvalBranchQuota(10000); 60 @setEvalBranchQuota(10000);
61 const file = try std.fs.File.openWrite("README.md"); 61 const file = try std.fs.cwd().createFile("README.md", .{});
62 const stream = &file.outStream().stream; 62 const stream = &file.outStream().stream;
63 try stream.print(@embedFile("example/README.md.template"), .{ 63 try stream.print(@embedFile("example/README.md.template"), .{
64 @embedFile("example/simple.zig"), 64 @embedFile("example/simple.zig"),