aboutsummaryrefslogtreecommitdiff
path: root/lib/std/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-30 15:14:04 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-30 15:35:27 -0500
commit413f9a5cfc9e867e3bc69b47b38c62b52a52d5e9 (patch)
tree527b612cd0b7de432ed0738cf8c181a8f37dfb93 /lib/std/build.zig
parentd039fed831cfc219821b58f1d819d79ad49dc652 (diff)
downloadzig-413f9a5cfc9e867e3bc69b47b38c62b52a52d5e9.tar.gz
zig-413f9a5cfc9e867e3bc69b47b38c62b52a52d5e9.zip
move `std.fs.Dir.cwd` to `std.fs.cwd`
update to non-deprecated std.fs APIs throughout the codebase Related: #3811
Diffstat (limited to 'lib/std/build.zig')
-rw-r--r--lib/std/build.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/build.zig b/lib/std/build.zig
index 38025b83bc..026e889b7b 100644
--- a/lib/std/build.zig
+++ b/lib/std/build.zig
@@ -2416,7 +2416,7 @@ fn findVcpkgRoot(allocator: *Allocator) !?[]const u8 {
const path_file = try fs.path.join(allocator, [_][]const u8{ appdata_path, "vcpkg.path.txt" });
defer allocator.free(path_file);
- const file = fs.File.openRead(path_file) catch return null;
+ const file = fs.cwd().openFile(path_file, .{}) catch return null;
defer file.close();
const size = @intCast(usize, try file.getEndPos());