print call in build.zig needs to use a tuple argument

This commit is contained in:
dbandstra 2019-12-09 19:21:28 -08:00 committed by Andrew Kelley
parent 2a7103ca34
commit 3388c777fa

View File

@ -1576,7 +1576,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;
out.print("pub const {} = {};\n", name, value) catch unreachable;
out.print("pub const {} = {};\n", .{ name, value }) catch unreachable;
}
pub fn addSystemIncludeDir(self: *LibExeObjStep, path: []const u8) void {