Skip to content

Commit

Permalink
Enable Float16 emulation for macCatalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
kdubb committed Jun 5, 2024
1 parent e6fb2cd commit c4f3c3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import PackageDescription
let pcDeps: [Target.Dependency] = [
"BigInt",
.product(name: "Collections", package: "swift-collections"),
.byName(name: "Float16", condition: .when(platforms: [.macOS, .linux]))
.byName(name: "Float16", condition: .when(platforms: [.macOS, .macCatalyst, .linux]))
]
#else
let pcDeps: [Target.Dependency] = [
Expand Down
2 changes: 1 addition & 1 deletion Sources/PotentCodables/Float16.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Distributed under the MIT License, See LICENSE for details.
//

#if arch(x86_64) && (os(macOS) || os(Linux))
#if arch(x86_64) && (os(macOS) || os(Linux) || targetEnvironment(macCatalyst))

import Float16

Expand Down

0 comments on commit c4f3c3c

Please sign in to comment.