Skip to content

Commit

Permalink
fix build.zig addBuildOption function for stream refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dbandstra authored and andrewrk committed Mar 22, 2020
1 parent dc79f18 commit a8fa1ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/build.zig
Expand Up @@ -1679,7 +1679,7 @@ pub const LibExeObjStep = struct {
}

pub fn addBuildOption(self: *LibExeObjStep, comptime T: type, name: []const u8, value: T) void {
const out = &std.io.BufferOutStream.init(&self.build_options_contents).stream;
const out = self.build_options_contents.outStream();
out.print("pub const {} = {};\n", .{ name, value }) catch unreachable;
}

Expand Down

0 comments on commit a8fa1ec

Please sign in to comment.