Skip to content

Commit 840c822

Browse files
committed
Amend #872 to avoid loader failures when hosted in Xcode.
1 parent aa96a79 commit 840c822

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

Package.swift

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,20 @@ let package = Package(
2626
],
2727

2828
products: [
29-
.library(
30-
name: "Testing",
31-
type: .dynamic, // needed so Windows exports ABI entry point symbols
32-
targets: ["Testing"]
33-
),
29+
{
30+
#if os(Windows)
31+
.library(
32+
name: "Testing",
33+
type: .dynamic, // needed so Windows exports ABI entry point symbols
34+
targets: ["Testing"]
35+
)
36+
#else
37+
.library(
38+
name: "Testing",
39+
targets: ["Testing"]
40+
)
41+
#endif
42+
}()
3443
],
3544

3645
dependencies: [

0 commit comments

Comments
 (0)