diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-11-30 15:14:04 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-11-30 15:35:27 -0500 |
| commit | 413f9a5cfc9e867e3bc69b47b38c62b52a52d5e9 (patch) | |
| tree | 527b612cd0b7de432ed0738cf8c181a8f37dfb93 /lib/std/build.zig | |
| parent | d039fed831cfc219821b58f1d819d79ad49dc652 (diff) | |
| download | zig-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.zig | 2 |
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()); |
