Skip to content

Commit

Permalink
Fix compilation for swift 6
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachNagengast committed Jun 19, 2024
1 parent fc6bfeb commit 7fa227e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions Examples/WhisperAX/WhisperAX.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
1683EFEE2B9FACFE002448CD /* WhisperAX Watch App.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 161135DE2B3F66DA003C20F6 /* WhisperAX Watch App.app */; platformFilter = ios; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
1683EFEF2B9FADFE002448CD /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1677AFB42B57618A008C61C0 /* Assets.xcassets */; };
1683EFF02B9FADFE002448CD /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1677AFB62B57618A008C61C0 /* Preview Assets.xcassets */; };
16D581092B4F7E4E000C0AB0 /* MarkdownUI in Frameworks */ = {isa = PBXBuildFile; productRef = 16D581082B4F7E4E000C0AB0 /* MarkdownUI */; };
16EA36CF2B59E550006CA7CF /* WhisperKit in Frameworks */ = {isa = PBXBuildFile; productRef = 16EA36CE2B59E550006CA7CF /* WhisperKit */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -134,7 +133,6 @@
buildActionMask = 2147483647;
files = (
16EA36CF2B59E550006CA7CF /* WhisperKit in Frameworks */,
16D581092B4F7E4E000C0AB0 /* MarkdownUI in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -354,7 +352,6 @@
);
name = WhisperAX;
packageProductDependencies = (
16D581082B4F7E4E000C0AB0 /* MarkdownUI */,
16EA36CE2B59E550006CA7CF /* WhisperKit */,
);
productName = BasicExample;
Expand Down Expand Up @@ -1137,11 +1134,6 @@
isa = XCSwiftPackageProductDependency;
productName = WhisperKit;
};
16D581082B4F7E4E000C0AB0 /* MarkdownUI */ = {
isa = XCSwiftPackageProductDependency;
package = 16D581062B4F7DCE000C0AB0 /* XCRemoteSwiftPackageReference "swift-markdown-ui" */;
productName = MarkdownUI;
};
16EA36CE2B59E550006CA7CF /* WhisperKit */ = {
isa = XCSwiftPackageProductDependency;
productName = WhisperKit;
Expand Down
2 changes: 1 addition & 1 deletion Sources/WhisperKit/Core/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public typealias FloatType = Float16
public typealias FloatType = Float
#endif

#if (os(macOS) || targetEnvironment(macCatalyst)) && arch(arm64)
#if (os(macOS) || targetEnvironment(macCatalyst)) && arch(arm64) && compiler(<6)
extension Float16: BNNSScalar {}
extension Float16: MLShapedArrayScalar {}
#endif
Expand Down

0 comments on commit 7fa227e

Please sign in to comment.