From 8870ead9b257c1b02f668075c3c53e70b204832f Mon Sep 17 00:00:00 2001 From: Tom Read Cutting Date: Sun, 15 Oct 2023 12:12:19 +0100 Subject: [PATCH] Fix some frameworks not linking macos Pull request #16888 removed searching for libraries with no extensions when linking frameworks... this adds that feature back. --- src/main.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index 14d187796c..4b8061a528 100644 --- a/src/main.zig +++ b/src/main.zig @@ -6929,9 +6929,9 @@ fn accessFrameworkPath( ) !bool { const sep = fs.path.sep_str; - for (&[_][]const u8{ "tbd", "dylib" }) |ext| { + for (&[_][]const u8{ ".tbd", ".dylib", "" }) |ext| { test_path.clearRetainingCapacity(); - try test_path.writer().print("{s}" ++ sep ++ "{s}.framework" ++ sep ++ "{s}.{s}", .{ + try test_path.writer().print("{s}" ++ sep ++ "{s}.framework" ++ sep ++ "{s}{s}", .{ framework_dir_path, framework_name, framework_name,