| ... | ... | @@ -1221,7 +1221,7 @@ fn parseDependentDylibs(self: *MachO) !void { |
| 1221 | 1221 | try checked_paths.append(rel_path); |
| 1222 | 1222 | var buffer: [fs.max_path_bytes]u8 = undefined; |
| 1223 | 1223 | // 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]; |
| 1225 | 1225 | break :full_path try arena.dupe(u8, full_path); |
| 1226 | 1226 | } |
| 1227 | 1227 | } else if (eatPrefix(id.name, "@loader_path/")) |_| { |
| ... | ... | @@ -1235,7 +1235,7 @@ fn parseDependentDylibs(self: *MachO) !void { |
| 1235 | 1235 | try checked_paths.append(try arena.dupe(u8, id.name)); |
| 1236 | 1236 | var buffer: [fs.max_path_bytes]u8 = undefined; |
| 1237 | 1237 | // 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| { |
| 1239 | 1239 | break :full_path try arena.dupe(u8, buffer[0..full_path_n]); |
| 1240 | 1240 | } else |_| { |
| 1241 | 1241 | try self.reportMissingDependencyError( |