diff options
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"), |