Skip to content

Commit 8c41d0f

Browse files
committed
Build dynamic framework on Linux
1 parent cf4fa00 commit 8c41d0f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Package.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
// swift-tools-version:5.0
22
import PackageDescription
33

4+
#if os(Linux)
5+
let libraryType: PackageDescription.Product.Library.LibraryType = .dynamic
6+
#else
7+
let libraryType: PackageDescription.Product.Library.LibraryType = .static
8+
#endif
9+
410
let package = Package(
511
name: "TLVCoding",
612
products: [
713
.library(
814
name: "TLVCoding",
9-
type: .dynamic,
15+
type: libraryType,
1016
targets: ["TLVCoding"]
1117
)
1218
],

0 commit comments

Comments
 (0)