| ... | @@ -1113,7 +1113,7 @@ pub fn parseDependentLibs(self: *MachO, dependent_libs: anytype) !void { | ... | @@ -1113,7 +1113,7 @@ pub fn parseDependentLibs(self: *MachO, dependent_libs: anytype) !void { |
| 1113 | const parent = &self.dylibs.items[dep_id.parent]; | 1113 | const parent = &self.dylibs.items[dep_id.parent]; |
| 1114 | const weak = parent.weak; | 1114 | const weak = parent.weak; |
| 1115 | const dirname = fs.path.dirname(dep_id.id.name) orelse ""; | 1115 | const dirname = fs.path.dirname(dep_id.id.name) orelse ""; |
| 1116 | const basename = fs.path.basename(dep_id.id.name); | 1116 | const stem = fs.path.stem(dep_id.id.name); |
| 1117 | | 1117 | |
| 1118 | var arena_allocator = std.heap.ArenaAllocator.init(gpa); | 1118 | var arena_allocator = std.heap.ArenaAllocator.init(gpa); |
| 1119 | defer arena_allocator.deinit(); | 1119 | defer arena_allocator.deinit(); |
| ... | @@ -1125,10 +1125,10 @@ pub fn parseDependentLibs(self: *MachO, dependent_libs: anytype) !void { | ... | @@ -1125,10 +1125,10 @@ pub fn parseDependentLibs(self: *MachO, dependent_libs: anytype) !void { |
| 1125 | success: { | 1125 | success: { |
| 1126 | if (self.base.options.sysroot) |root| { | 1126 | if (self.base.options.sysroot) |root| { |
| 1127 | const dir = try fs.path.join(arena, &[_][]const u8{ root, dirname }); | 1127 | const dir = try fs.path.join(arena, &[_][]const u8{ root, dirname }); |
| 1128 | if (try accessLibPath(gpa, &test_path, &checked_paths, dir, basename)) break :success; | 1128 | if (try accessLibPath(gpa, &test_path, &checked_paths, dir, stem)) break :success; |
| 1129 | } | 1129 | } |
| 1130 | | 1130 | |
| 1131 | if (try accessLibPath(gpa, &test_path, &checked_paths, dirname, basename)) break :success; | 1131 | if (try accessLibPath(gpa, &test_path, &checked_paths, dirname, stem)) break :success; |
| 1132 | | 1132 | |
| 1133 | try self.reportMissingLibraryError( | 1133 | try self.reportMissingLibraryError( |
| 1134 | checked_paths.items, | 1134 | checked_paths.items, |