Commit 8870ead9b2

Tom Read Cutting <readcuttingt@gmail.com>
2023-10-15 13:12:19
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 parent a241cf9
Changed files (1)
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,