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