authorgravatar for readcuttingt@gmail.comTom Read Cutting <readcuttingt@gmail.com> 2023-10-15 12:12:19+01:00
committergravatar for readcuttingt@gmail.comTom Read Cutting <readcuttingt@gmail.com> 2023-10-15 12:45:06+01:00
log8870ead9b257c1b02f668075c3c53e70b204832f
treeb4589c9a547e9eb00bab48a0acc45721dc27e380
parenta241cf90d66ee0a47fafc49dc65fe32871557a01

Fix some frameworks not linking macos

Pull request #16888 removed searching for libraries with no extensions when linking frameworks... this adds that feature back.

1 files changed, 2 insertions(+), 2 deletions(-)

src/main.zig+2-2
...@@ -6929,9 +6929,9 @@ fn accessFrameworkPath(...@@ -6929,9 +6929,9 @@ fn accessFrameworkPath(
6929) !bool {6929) !bool {
6930 const sep = fs.path.sep_str;6930 const sep = fs.path.sep_str;
69316931
6932 for (&[_][]const u8{ "tbd", "dylib" }) |ext| {6932 for (&[_][]const u8{ ".tbd", ".dylib", "" }) |ext| {
6933 test_path.clearRetainingCapacity();6933 test_path.clearRetainingCapacity();
6934 try test_path.writer().print("{s}" ++ sep ++ "{s}.framework" ++ sep ++ "{s}.{s}", .{6934 try test_path.writer().print("{s}" ++ sep ++ "{s}.framework" ++ sep ++ "{s}{s}", .{
6935 framework_dir_path,6935 framework_dir_path,
6936 framework_name,6936 framework_name,
6937 framework_name,6937 framework_name,