Skip to content

Commit

Permalink
Build as static library
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Apr 11, 2022
1 parent dd4f4ed commit 10e8425
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// swift-tools-version:5.0
// swift-tools-version:5.1
import PackageDescription

#if os(Linux)
let libraryType: PackageDescription.Product.Library.LibraryType = .dynamic
#else
let libraryType: PackageDescription.Product.Library.LibraryType = .static
#endif

let package = Package(
name: "TLVCoding",
Expand All @@ -19,6 +15,5 @@ let package = Package(
targets: [
.target(name: "TLVCoding", path: "./Sources"),
.testTarget(name: "TLVCodingTests", dependencies: ["TLVCoding"])
],
swiftLanguageVersions: [.v5]
]
)

0 comments on commit 10e8425

Please sign in to comment.