Fix some frameworks not linking macos

Pull request #16888 removed searching for libraries with no extensions
when linking frameworks... this adds that feature back.
This commit is contained in:
Tom Read Cutting
2023-10-15 12:12:19 +01:00
parent a241cf90d6
commit 8870ead9b2

View File

@@ -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,