authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-19 18:11:17-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-23 22:15:11-08:00
log98f05a0f53d08683e4b8127210448c0de00dc9cf
treef3702ed5bdce4d41c4c28ed0be5846468e0e72fa
parent7423d6a4044bd2c92ebfe5023bd4f3ad2789c793

compiler: update calls to realpath


1 files changed, 2 insertions(+), 2 deletions(-)

src/link/MachO.zig+2-2
......@@ -1221,7 +1221,7 @@ fn parseDependentDylibs(self: *MachO) !void {
12211221 try checked_paths.append(rel_path);
12221222 var buffer: [fs.max_path_bytes]u8 = undefined;
12231223 // TODO don't use realpath
1224 const full_path = buffer[0 .. Io.Dir.realPathAbsolute(io, rel_path, &buffer) catch continue];
1224 const full_path = buffer[0 .. Io.Dir.realPathFileAbsolute(io, rel_path, &buffer) catch continue];
12251225 break :full_path try arena.dupe(u8, full_path);
12261226 }
12271227 } else if (eatPrefix(id.name, "@loader_path/")) |_| {
......@@ -1235,7 +1235,7 @@ fn parseDependentDylibs(self: *MachO) !void {
12351235 try checked_paths.append(try arena.dupe(u8, id.name));
12361236 var buffer: [fs.max_path_bytes]u8 = undefined;
12371237 // TODO don't use realpath
1238 if (Io.Dir.realPathAbsolute(io, id.name, &buffer)) |full_path_n| {
1238 if (Io.Dir.realPathFileAbsolute(io, id.name, &buffer)) |full_path_n| {
12391239 break :full_path try arena.dupe(u8, buffer[0..full_path_n]);
12401240 } else |_| {
12411241 try self.reportMissingDependencyError(