Skip to content

Commit 8f5b1d8

Browse files
authored
Merge pull request #72 from outfoxx/fix/catalyst
Enable Float16 emulation for macCatalyst
2 parents e6fb2cd + c4f3c3c commit 8f5b1d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import PackageDescription
1616
let pcDeps: [Target.Dependency] = [
1717
"BigInt",
1818
.product(name: "Collections", package: "swift-collections"),
19-
.byName(name: "Float16", condition: .when(platforms: [.macOS, .linux]))
19+
.byName(name: "Float16", condition: .when(platforms: [.macOS, .macCatalyst, .linux]))
2020
]
2121
#else
2222
let pcDeps: [Target.Dependency] = [

Sources/PotentCodables/Float16.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// Distributed under the MIT License, See LICENSE for details.
99
//
1010

11-
#if arch(x86_64) && (os(macOS) || os(Linux))
11+
#if arch(x86_64) && (os(macOS) || os(Linux) || targetEnvironment(macCatalyst))
1212

1313
import Float16
1414

0 commit comments

Comments
 (0)