From d882a305875d5e0ab5d7877c3763b5aaf0ff61ce Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 10 Mar 2020 20:51:30 -0400 Subject: [PATCH] fix stage2 lib on windows --- src-self-hosted/libc_installation.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src-self-hosted/libc_installation.zig b/src-self-hosted/libc_installation.zig index 78aafeff28..0f9736456a 100644 --- a/src-self-hosted/libc_installation.zig +++ b/src-self-hosted/libc_installation.zig @@ -348,7 +348,7 @@ pub const LibCInstallation = struct { for (searches) |search| { result_buf.shrink(0); - const stream = &std.io.BufferOutStream.init(&result_buf).stream; + const stream = result_buf.outStream(); try stream.print("{}\\Include\\{}\\ucrt", .{ search.path, search.version }); var dir = fs.cwd().openDirList(result_buf.toSliceConst()) catch |err| switch (err) { @@ -395,7 +395,7 @@ pub const LibCInstallation = struct { for (searches) |search| { result_buf.shrink(0); - const stream = &std.io.BufferOutStream.init(&result_buf).stream; + const stream = result_buf.outStream(); try stream.print("{}\\Lib\\{}\\ucrt\\{}", .{ search.path, search.version, arch_sub_dir }); var dir = fs.cwd().openDirList(result_buf.toSliceConst()) catch |err| switch (err) { @@ -459,7 +459,7 @@ pub const LibCInstallation = struct { for (searches) |search| { result_buf.shrink(0); - const stream = &std.io.BufferOutStream.init(&result_buf).stream; + const stream = result_buf.outStream(); try stream.print("{}\\Lib\\{}\\um\\{}", .{ search.path, search.version, arch_sub_dir }); var dir = fs.cwd().openDirList(result_buf.toSliceConst()) catch |err| switch (err) {