diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,8 +1,8 @@ | |||
| 1 | const builtin = @import("builtin"); | 1 | const builtin = @import("builtin"); |
| 2 | const std = @import("std"); | 2 | const std = @import("std"); |
| 3 | 3 | ||
| 4 | const Mode = builtin.Mode; | ||
| 5 | const Builder = std.build.Builder; | 4 | const Builder = std.build.Builder; |
| 5 | const Mode = builtin.Mode; | ||
| 6 | 6 | ||
| 7 | pub fn build(b: *Builder) void { | 7 | pub fn build(b: *Builder) void { |
| 8 | const mode = b.standardReleaseOptions(); | 8 | const mode = b.standardReleaseOptions(); |
| @@ -58,7 +58,7 @@ fn readMeStep(b: *Builder) *std.build.Step { | |||
| 58 | fn make(step: *std.build.Step) anyerror!void { | 58 | fn make(step: *std.build.Step) anyerror!void { |
| 59 | @setEvalBranchQuota(10000); | 59 | @setEvalBranchQuota(10000); |
| 60 | const file = try std.fs.cwd().createFile("README.md", .{}); | 60 | const file = try std.fs.cwd().createFile("README.md", .{}); |
| 61 | const stream = &file.outStream(); | 61 | const stream = file.writer(); |
| 62 | try stream.print(@embedFile("example/README.md.template"), .{ | 62 | try stream.print(@embedFile("example/README.md.template"), .{ |
| 63 | @embedFile("example/simple.zig"), | 63 | @embedFile("example/simple.zig"), |
| 64 | @embedFile("example/simple-error.zig"), | 64 | @embedFile("example/simple-error.zig"), |