| author | |
| committer | |
| log | 78f2ae7f29ff537e63227d7e88e555178fed2a34 |
| tree | a2443684b20289d04d9a666451945160793cff0b |
| parent | 7b9165b37576ed4c4962c0ad2afb62921524aa08 |
| parent | 023d1ac6bf25c941510509ddbb659c73947ec39b |
| signature |
Fix some frameworks not linking macos2 files changed, 13 insertions(+), 2 deletions(-)
src/link/MachO.zig+11| ... | @@ -707,6 +707,17 @@ fn accessLibPath( | ... | @@ -707,6 +707,17 @@ fn accessLibPath( |
| 707 | return true; | 707 | return true; |
| 708 | } | 708 | } |
| 709 | 709 | ||
| 710 | noextension: { | ||
| 711 | test_path.clearRetainingCapacity(); | ||
| 712 | try test_path.writer().print("{s}" ++ sep ++ "{s}", .{ search_dir, lib_name }); | ||
| 713 | try checked_paths.append(try gpa.dupe(u8, test_path.items)); | ||
| 714 | fs.cwd().access(test_path.items, .{}) catch |err| switch (err) { | ||
| 715 | error.FileNotFound => break :noextension, | ||
| 716 | else => |e| return e, | ||
| 717 | }; | ||
| 718 | return true; | ||
| 719 | } | ||
| 720 | |||
| 710 | return false; | 721 | return false; |
| 711 | } | 722 | } |
| 712 | 723 |
src/main.zig+2-2| ... | @@ -6956,9 +6956,9 @@ fn accessFrameworkPath( | ... | @@ -6956,9 +6956,9 @@ fn accessFrameworkPath( |
| 6956 | ) !bool { | 6956 | ) !bool { |
| 6957 | const sep = fs.path.sep_str; | 6957 | const sep = fs.path.sep_str; |
| 6958 | 6958 | ||
| 6959 | for (&[_][]const u8{ "tbd", "dylib" }) |ext| { | 6959 | for (&[_][]const u8{ ".tbd", ".dylib", "" }) |ext| { |
| 6960 | test_path.clearRetainingCapacity(); | 6960 | test_path.clearRetainingCapacity(); |
| 6961 | try test_path.writer().print("{s}" ++ sep ++ "{s}.framework" ++ sep ++ "{s}.{s}", .{ | 6961 | try test_path.writer().print("{s}" ++ sep ++ "{s}.framework" ++ sep ++ "{s}{s}", .{ |
| 6962 | framework_dir_path, | 6962 | framework_dir_path, |
| 6963 | framework_name, | 6963 | framework_name, |
| 6964 | framework_name, | 6964 | framework_name, |