We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf4fa00 commit 8c41d0fCopy full SHA for 8c41d0f
1 file changed
Package.swift
@@ -1,12 +1,18 @@
1
// swift-tools-version:5.0
2
import PackageDescription
3
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
+
10
let package = Package(
11
name: "TLVCoding",
12
products: [
13
.library(
14
- type: .dynamic,
15
+ type: libraryType,
16
targets: ["TLVCoding"]
17
)
18
],
0 commit comments