aboutsummaryrefslogtreecommitdiff
path: root/src/Builtin.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-11 22:11:16 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:09 -0800
commit68621afd2e203d82b6f53bf4ede951827fa98db8 (patch)
tree60899decd0062ce7786592e49ca77ab6f80d22fd /src/Builtin.zig
parent0e230993d51d0ecded40d5235ada4f2f64036b26 (diff)
downloadzig-68621afd2e203d82b6f53bf4ede951827fa98db8.tar.gz
zig-68621afd2e203d82b6f53bf4ede951827fa98db8.zip
std.tar: update fs API calls to take io argument
Diffstat (limited to 'src/Builtin.zig')
-rw-r--r--src/Builtin.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Builtin.zig b/src/Builtin.zig
index b0077f2276..9e4fae8e6a 100644
--- a/src/Builtin.zig
+++ b/src/Builtin.zig
@@ -313,8 +313,9 @@ pub fn updateFileOnDisk(file: *File, comp: *Compilation) !void {
assert(file.source != null);
const root_dir, const sub_path = file.path.openInfo(comp.dirs);
+ const io = comp.io;
- if (root_dir.statFile(sub_path)) |stat| {
+ if (root_dir.statFile(io, sub_path, .{})) |stat| {
if (stat.size != file.source.?.len) {
std.log.warn(
"the cached file '{f}' had the wrong size. Expected {d}, found {d}. " ++