| ... | ... | @@ -751,7 +751,6 @@ pub fn flushModule(self: *MachO, comp: *Compilation) !void { |
| 751 | 751 | } |
| 752 | 752 | } |
| 753 | 753 | |
| 754 | | var framework_not_found = false; |
| 755 | 754 | for (self.base.options.frameworks) |framework| { |
| 756 | 755 | for (&[_][]const u8{ ".tbd", ".dylib", "" }) |ext| { |
| 757 | 756 | if (try resolveFramework(arena, framework_dirs.items, framework, ext)) |full_path| { |
| ... | ... | @@ -760,14 +759,13 @@ pub fn flushModule(self: *MachO, comp: *Compilation) !void { |
| 760 | 759 | } |
| 761 | 760 | } else { |
| 762 | 761 | log.warn("framework not found for '-framework {s}'", .{framework}); |
| 763 | | framework_not_found = true; |
| 764 | | } |
| 765 | | } |
| 766 | | |
| 767 | | if (framework_not_found) { |
| 768 | | log.warn("Framework search paths:", .{}); |
| 769 | | for (framework_dirs.items) |dir| { |
| 770 | | log.warn(" {s}", .{dir}); |
| 762 | log.warn("Framework search paths:", .{}); |
| 763 | for (framework_dirs.items) |dir| { |
| 764 | log.warn(" {s}", .{dir}); |
| 765 | } else { |
| 766 | log.warn(" <empty>. Consider specifying --sysroot", .{}); |
| 767 | } |
| 768 | return error.FrameworkNotFound; |
| 771 | 769 | } |
| 772 | 770 | } |
| 773 | 771 | |