diff options
| author | 2020-03-01 21:32:15 -0800 | |
|---|---|---|
| committer | 2020-03-01 21:32:15 -0800 | |
| commit | ffc5e241a6e41895d930d1a2831ad517cccaa0b9 (patch) | |
| tree | ee382b1dfc247294a140df3ebb5234445b496399 /build.zig | |
| parent | Merge pull request #14 from dbandstra/update-for-typeof-rename (diff) | |
| download | zig-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.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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"), |