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