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