Skip to content

Commit 431b273

Browse files
committed
Enable library evolution for SwiftPM build
1 parent cf0de43 commit 431b273

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Package.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ let package = Package(
2424
.product(name: "PlainPocketFFT", package: "plain-pocketfft"),
2525
.product(name: "PocketFFT", package: "pocketfft")
2626
],
27-
path: "Sources"
27+
path: "Sources",
28+
swiftSettings: [
29+
.unsafeFlags(["-enable-library-evolution"]),
30+
.define("BUILD_LIBRARY_FOR_DISTRIBUTION")
31+
]
2832
),
2933
.testTarget(
3034
name: "OtosakuFeatureExtractorTests",

Sources/OtosakuFeatureExtractor/Array+Extensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import Foundation
1010
import Accelerate
1111

12-
import PocketFFT
13-
import PlainPocketFFT
12+
internal import PocketFFT
13+
internal import PlainPocketFFT
1414
import CoreGraphics
1515

1616
extension FloatingPoint {

0 commit comments

Comments
 (0)